Adds none port checking on validations

This patch serves to correct the problem presented in UFCG OneView CI,
in which the node was being created and changed the state to manageable,
and only creating the port after that.
This breaking one of its validations and with this new verification,
this problem can be solved.

Change-Id: I5be89d54c886b24553a6c7f9d836e9ba28211b9b
This commit is contained in:
Fellype Cavalcante 2017-08-15 15:00:51 -03:00
parent 40c2418eb8
commit 69c43a41b8

@ -634,6 +634,8 @@ class Client(BaseClient):
def _is_node_port_mac_compatible_with_server_hardware(
self, node_info, ports
):
if not ports:
return
server_hardware = self.get_server_hardware(node_info)
try:
mac = server_hardware.get_mac(nic_index=0)