Skip to content

Commit

Permalink
Add default_route to list of usage properties
Browse files Browse the repository at this point in the history
closes #648
  • Loading branch information
ilush authored and mwperina committed Dec 14, 2022
1 parent 5be4253 commit 2c937bf
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions plugins/modules/ovirt_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,13 +262,14 @@ def build_entity(self):
display=self._cluster_network.get('display'),
usages=list(set([
otypes.NetworkUsage(usage)
for usage in ['display', 'gluster', 'migration']
for usage in ['display', 'gluster', 'migration', 'default_route']
if self._cluster_network.get(usage, False)
] + self._old_usages))
if (
self._cluster_network.get('display') is not None or
self._cluster_network.get('gluster') is not None or
self._cluster_network.get('migration') is not None
self._cluster_network.get('migration') is not None or
self._cluster_network.get('default_route') is not None
) else None,
)

Expand All @@ -285,7 +286,7 @@ def update_check(self, entity):
]
for x in [
usage
for usage in ['display', 'gluster', 'migration']
for usage in ['display', 'gluster', 'migration', 'default_route']
if self._cluster_network.get(usage, False)
]
)
Expand Down

0 comments on commit 2c937bf

Please sign in to comment.