hep-gc / cloud-scheduler

Automatically boot VMs for your HTC jobs
http://cloudscheduler.org
Apache License 2.0
3 stars 0 forks source link

Spelling mistake in _find_network() return wrong value for network #479

Closed fderue closed 5 years ago

fderue commented 6 years ago

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