diff options
| author | Trey Morris <trey.morris@rackspace.com> | 2011-07-14 22:06:37 +0000 |
|---|---|---|
| committer | Tarmac <> | 2011-07-14 22:06:37 +0000 |
| commit | 5c4ff1e78588ffde1485f6376db3693ff9990701 (patch) | |
| tree | f03d8c0c8634d969aa85ef38a27a4da7e5997ad6 | |
| parent | b5af7c4df50812ba36a68b9a658f7df03ced0b1e (diff) | |
| parent | 7d3859833d0647cad15c614e816df9440bb99d44 (diff) | |
corrected catching NoNetworksDefined exception in host setup and getting networks for instance
| -rw-r--r-- | nova/network/manager.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nova/network/manager.py b/nova/network/manager.py index 824e8d24d..24736f53d 100644 --- a/nova/network/manager.py +++ b/nova/network/manager.py @@ -340,7 +340,7 @@ class NetworkManager(manager.SchedulerDependentManager): """Set the network hosts for any networks which are unset.""" try: networks = self.db.network_get_all(context) - except Exception.NoNetworksFound: + except exception.NoNetworksFound: # we don't care if no networks are found pass @@ -357,7 +357,7 @@ class NetworkManager(manager.SchedulerDependentManager): # a non-vlan instance should connect to try: networks = self.db.network_get_all(context) - except Exception.NoNetworksFound: + except exception.NoNetworksFound: # we don't care if no networks are found pass |
