We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 37eee88 + ceaa753 commit f6fb594Copy full SHA for f6fb594
ansible/roles/config-diff-vars/filter_plugins/utils.py
@@ -88,7 +88,7 @@ def dummy_facts_interfaces(context, host):
88
interface = mapping['interface']
89
interfaces.append(interface)
90
ip = mapping['ip']
91
- key = "ansible_%s" % interface
+ key = f"ansible_{interface.replace('-', '_')}"
92
value = {"ipv4": {"address": ip}}
93
result[key] = value
94
result['interfaces'] = result.get('interfaces',[]) + interfaces
0 commit comments