Skip to content

Commit

Permalink
Fix bug in common.node_networks() (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
erl-hpe authored Jul 25, 2024
1 parent 536eee8 commit cacb537
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions vtds_cluster_kvm/private/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,10 @@ def node_networks(self, node_class):
"""
node = self.__get_node(node_class)
return [
network_interface.get['cluster_network']
for _, network_interface in node.get('network_interfaces', {})
network_interface['cluster_network']
for _, network_interface in node.get(
'network_interfaces', {}
).items()
if not network_interface.get('delete', False)
and 'cluster_network' in network_interface
]
Expand Down

0 comments on commit cacb537

Please sign in to comment.