Fix silly copy/paste bug
This commit is contained in:
parent
6c2eabbe6a
commit
1ec7cb8761
1 changed files with 3 additions and 3 deletions
|
@ -251,9 +251,9 @@ class OpenNebulaManager():
|
||||||
|
|
||||||
:return: An IP address string, if it exists else returns None
|
:return: An IP address string, if it exists else returns None
|
||||||
"""
|
"""
|
||||||
all_ipv4s = self.get_vm_ipv4_addresses(vm_id)
|
all_ipv6s = self.get_vm_ipv6_addresses(vm_id)
|
||||||
if len(all_ipv4s) > 0:
|
if len(all_ipv6s) > 0:
|
||||||
return all_ipv4s[0]
|
return all_ipv6s[0]
|
||||||
else:
|
else:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue