Skip to content

Commit

Permalink
Fixing filter to work with Ansible 2.9
Browse files Browse the repository at this point in the history
  • Loading branch information
jtyr committed Nov 25, 2019
1 parent 57e9005 commit 824880e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions filter_plugins/custom_filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,10 +186,10 @@ def modify_disks(data, state, facts, prefix='_'):
userdata_key in disk and
disk[userdata_key] is True and
facts is not None and
'guest_disk_facts' in facts and
unit in facts['guest_disk_facts']):
'guest_disk_info' in facts and
unit in facts['guest_disk_info']):
# Replace whatever disk definition with the filename only
unit_facts = facts['guest_disk_facts'][unit]
unit_facts = facts['guest_disk_info'][unit]
record['filename'] = unit_facts['backing_filename']
else:
for k, v in disk.items():
Expand Down

0 comments on commit 824880e

Please sign in to comment.