Skip to content

Instantly share code, notes, and snippets.

View stpierre's full-sized avatar

Chris St. Pierre stpierre

  • Array
  • Lincoln, NE
View GitHub Profile
{%- if storage.cinder_enabled and storage.cinder_driver != ['nfs'] %}
CinderVolumes.create_and_delete_snapshot:
{%- for storage_driver in storage.cinder_driver|reject("equalto", "nfs") %}
{%- for cinder_api in cinder_api_versions|default([{"version": 1, "service_type": "volume"}]) %}
- args:
force: false
context:
users:
tenants: {{smoke|default(2)}}
users_per_tenant: {{smoke|default(2)}}
% ansible-lint test.yml
Couldn't parse task at Unknown (no action detected in task. This often indicates a misspelled module name, or incorrect module path.)
{ '__line__': 5, 'bogus': True, 'name': 'bogus'}
data_ordered = [int(l) for l in open("gamedata/tf2_50k.dat").readlines()]
peaks = []
in_peak = False
for point in data_ordered:
if point > 27395:
if in_peak:
peaks[-1] += 5
else:
peaks.append(5)
in_peak = True