Skip to content
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -44,7 +44,7 @@ def ip_mappings(context, hosts):
continue
result[host] = []
for network in networks:
interface = net_interface(context, host, network)
interface = net_interface(context, host, network) or ("missinginterface" + network)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
interface = net_interface(context, host, network) or ("missinginterface" + network)
interface = net_interface(context, host, network)
if not interface:
continue

Would also work, but maybe that is less debug-able.

ip = net_ip(context, host, network) or "dhcp.or.missing"
result[host].append({
'interface': interface,
Expand Down