Skip to content

Commit

Permalink
fix!: convert interface to lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
jackhodgkiss committed Aug 12, 2024
1 parent 36ec290 commit 473a6ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ansible/roles/config-diff-vars/filter_plugins/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def dummy_facts_prefix(facts, inject_facts):
return result

def interface_string(interface):
return "\"{{ lookup('vars', inventory_hostname | replace('-', '_') ~ '_' ~ '" + interface + "') }}\""
return "\"{{ lookup('vars', inventory_hostname | replace('-', '_') ~ '_' ~ '" + interface.lower() + "') }}\""

@pass_context
def ip_mappings(context, hosts):
Expand Down

0 comments on commit 473a6ad

Please sign in to comment.