Merge "Check for no neutron network in inventory"
This commit is contained in:
commit
e459428d9f
@ -500,10 +500,15 @@ class TripleoInventory(object):
|
|||||||
found_ctlplane_port = False
|
found_ctlplane_port = False
|
||||||
ctlplane_net = self.connection.network.find_network(
|
ctlplane_net = self.connection.network.find_network(
|
||||||
self.host_network)
|
self.host_network)
|
||||||
for p in ports:
|
if ctlplane_net:
|
||||||
if p.network_id == ctlplane_net.id:
|
for p in ports:
|
||||||
found_ctlplane_port = True
|
if p.network_id == ctlplane_net.id:
|
||||||
break
|
found_ctlplane_port = True
|
||||||
|
break
|
||||||
|
else:
|
||||||
|
LOG.warning("Host SSH network %s not found in neutron, not "
|
||||||
|
"using neutron data for inventory",
|
||||||
|
self.host_network)
|
||||||
if not found_ctlplane_port:
|
if not found_ctlplane_port:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user