mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-27 07:01:22 -07:00
Misc. typos in ovirt_host_networks (#36287)
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
parent
d86c5aee3c
commit
f59e1a6136
1 changed files with 2 additions and 2 deletions
|
@ -166,7 +166,7 @@ class HostNetworksModule(BaseModule):
|
||||||
return otypes.Host()
|
return otypes.Host()
|
||||||
|
|
||||||
def update_address(self, attachments_service, attachment, network):
|
def update_address(self, attachments_service, attachment, network):
|
||||||
# Check if there is any change in address assignenmts and
|
# Check if there is any change in address assignments and
|
||||||
# update it if needed:
|
# update it if needed:
|
||||||
for ip in attachment.ip_address_assignments:
|
for ip in attachment.ip_address_assignments:
|
||||||
if str(ip.ip.version) == network.get('version', 'v4'):
|
if str(ip.ip.version) == network.get('version', 'v4'):
|
||||||
|
@ -231,7 +231,7 @@ class HostNetworksModule(BaseModule):
|
||||||
|
|
||||||
for network in networks:
|
for network in networks:
|
||||||
attachment = attachments.get(network.get('name'))
|
attachment = attachments.get(network.get('name'))
|
||||||
# If attachment don't exsits, we need to create it:
|
# If attachment don't exists, we need to create it:
|
||||||
if attachment is None:
|
if attachment is None:
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue