diff options
author | Nikolas Hermanns <nikolas.hermanns@ericsson.com> | 2016-12-13 13:37:23 +0100 |
---|---|---|
committer | Nikolas Hermanns <nikolas.hermanns@ericsson.com> | 2016-12-13 15:05:54 +0100 |
commit | eea4d05fb495d9f7848489e238c6be2327ab34f3 (patch) | |
tree | bdb14d47c7c39d55be548db3e3c879574b76f59a /odl-pipeline/lib/deployment_cloner | |
parent | 416f9cf177801cecfe39f5249d73e3a4a85f0bbd (diff) |
adding common/config
Change-Id: I2d96e6efa628f066e165a8e37d2604eb8f0634bd
Signed-off-by: Nikolas Hermanns <nikolas.hermanns@ericsson.com>
Diffstat (limited to 'odl-pipeline/lib/deployment_cloner')
-rwxr-xr-x | odl-pipeline/lib/deployment_cloner/deployment_cloner.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/odl-pipeline/lib/deployment_cloner/deployment_cloner.py b/odl-pipeline/lib/deployment_cloner/deployment_cloner.py index 4ba5ee9..dc2f3ba 100755 --- a/odl-pipeline/lib/deployment_cloner/deployment_cloner.py +++ b/odl-pipeline/lib/deployment_cloner/deployment_cloner.py @@ -4,6 +4,7 @@ from utils.utils_log import for_all_methods, log_enter_exit from utils.service import Service from utils.node_manager import NodeManager from utils.processutils import execute +from common import config as CONFIG @for_all_methods(log_enter_exit) @@ -36,7 +37,7 @@ class DeploymentCloner(Service): % self.undercloud_root_dir, log_true=True) underlcloud.copy('from', dest_dir, self.undercloud_root_dir + '/cloner-info/') - node_yaml_path = dest_dir + '/cloner-info/node.yaml' + node_yaml_path = dest_dir + '/cloner-info/' + CONFIG.NODE_YAML_PATH node_yaml = utils_yaml.read_dict_from_yaml(node_yaml_path) for name, node in node_yaml['servers'].iteritems(): node['vNode-name'] = self.get_virtual_node_name_from_mac( |