In the code bellow, the return value is always "None", since there is "s" in networks = nova.neutron.find_network(name)
It should be
network = nova.neutron.find_network(name)
(without "s")
def _find_network(self, name):
nova = self._get_creds_nova_updated()
network = None
try:
networks = nova.neutron.find_network(name)
except Exception as e:
log.error("Unable to find network %s on %s Exception: %s" % (name, self.name, e))
return network
In the code bellow, the return value is always "None", since there is "s" in networks = nova.neutron.find_network(name) It should be network = nova.neutron.find_network(name) (without "s")
def _find_network(self, name): nova = self._get_creds_nova_updated() network = None try: networks = nova.neutron.find_network(name) except Exception as e: log.error("Unable to find network %s on %s Exception: %s" % (name, self.name, e)) return network