Fix the issue while running VMTP from PyPI
Change-Id: I16d85b82981675ee8f2eecee3f61c819514508d3
This commit is contained in:
parent
819d8aeb8a
commit
995c2c0a02
@ -16,9 +16,6 @@
|
||||
from attrdict import AttrDict
|
||||
import yaml
|
||||
|
||||
with open('cfg.default.yaml') as fileobj:
|
||||
settings = AttrDict(yaml.safe_load(fileobj))
|
||||
|
||||
def config_load(file_name, from_cfg=None):
|
||||
'''Load a yaml file into a config dict, merge with from_cfg if not None
|
||||
The config file content taking precedence in case of duplicate
|
||||
|
@ -15,11 +15,10 @@
|
||||
|
||||
import time
|
||||
|
||||
from vmtp import VmtpException
|
||||
|
||||
# Module containing a helper class for operating on OpenStack networks
|
||||
from neutronclient.common.exceptions import NetworkInUseClient
|
||||
from neutronclient.common.exceptions import NeutronException
|
||||
import vmtp
|
||||
|
||||
class Network(object):
|
||||
|
||||
@ -52,7 +51,7 @@ class Network(object):
|
||||
int_net = self.lookup_network(self.config.reuse_network_name)
|
||||
self.vm_int_net.append(int_net)
|
||||
except IndexError:
|
||||
raise VmtpException("Unable to find the network to be reused.")
|
||||
raise vmtp.VmtpException("Unable to find the network to be reused.")
|
||||
return
|
||||
else:
|
||||
##############################################
|
||||
|
Loading…
x
Reference in New Issue
Block a user