From 824880eb3764cb3176d31907b4b0c0056f7f7fa0 Mon Sep 17 00:00:00 2001 From: Jiri Tyr Date: Mon, 25 Nov 2019 16:54:44 +0000 Subject: [PATCH] Fixing filter to work with Ansible 2.9 --- filter_plugins/custom_filters.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/filter_plugins/custom_filters.py b/filter_plugins/custom_filters.py index 766b66c..b81492b 100644 --- a/filter_plugins/custom_filters.py +++ b/filter_plugins/custom_filters.py @@ -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():