You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When backfill is complete and all elements are ok (so it seems), the condition fails.
Assumption:
a check if attribute='skipped' exists should help
check for other occurences and fix them as well
TASK [ansible_influx_downsampling : compact telegraf/influxdb_database - Backfilling measurement] **********************
ok: [localhost] => (item=7)
ok: [localhost] => (item=6)
ok: [localhost] => (item=5)
ok: [localhost] => (item=4)
ok: [localhost] => (item=3)
ok: [localhost] => (item=2)
ok: [localhost] => (item=1)
TASK [ansible_influx_downsampling : compact telegraf/influxdb_database - Print result from backfill] *******************
fatal: [localhost]: FAILED! => {"msg": "The conditional check '(ansible_influx_mm_backfill is succeeded and ansible_influx_mm_backfill is not changed and ansible_influx_mm_backfill is not skipped and (ansible_influx_mm_backfill.results|map(attribute='skipped')|flatten|default([])|unique != [ true ]) and (ansible_influx_mm_backfill.results|map(attribute='succeeded')|flatten|default([])|unique != [ true ]) ) or ansible_influx_mm_backfill is failed' failed. The error was: error while evaluating conditional ((ansible_influx_mm_backfill is succeeded and ansible_influx_mm_backfill is not changed and ansible_influx_mm_backfill is not skipped and (ansible_influx_mm_backfill.results|map(attribute='skipped')|flatten|default([])|unique != [ true ]) and (ansible_influx_mm_backfill.results|map(attribute='succeeded')|flatten|default([])|unique != [ true ]) ) or ansible_influx_mm_backfill is failed): 'dict object' has no attribute 'skipped'\n\nThe error appears to be in '/Users/muc/work/git/ansible-roles/ansible_influx_downsampling/tasks/influxdb_measurement.yml': line 129, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: '{{ mm_prefix }} Print result from backfill'\n ^ here\nWe could be wrong, but this one looks like it might be an issue with\nmissing quotes. Always quote template expression brackets when they\nstart a value. For instance:\n\n with_items:\n - {{ foo }}\n\nShould be written as:\n\n with_items:\n - \"{{ foo }}\"\n"}
The text was updated successfully, but these errors were encountered:
When backfill is complete and all elements are ok (so it seems), the condition fails.
Assumption:
attribute='skipped'
exists should helpThe text was updated successfully, but these errors were encountered: