aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/config_parse.py
diff options
context:
space:
mode:
authorbaigk <baiguoku@huawei.com>2016-02-15 22:38:47 +0800
committerJustin chi <chigang@huawei.com>2016-03-15 07:45:47 +0000
commitb356fbbd72be5814f870bfc1e42a97c68a0fdeab (patch)
treeb3ce72f7d415a5cfdbcfc3bc6f44849bb3190456 /deploy/config_parse.py
parent5d782101be072c1459b2f384eb634e8857e2cd8a (diff)
update default dha file and iso path
JIRA: COMPASS-313 Change-Id: I3e3c8016917513a2a8a963f2f007cb6faa4a1c7e Signed-off-by: baigk <baiguoku@huawei.com> (cherry picked from commit 33e9c3c7780a663ead5e0133b11de15332b62835)
Diffstat (limited to 'deploy/config_parse.py')
-rw-r--r--deploy/config_parse.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/deploy/config_parse.py b/deploy/config_parse.py
index 172388ce..63269f3b 100644
--- a/deploy/config_parse.py
+++ b/deploy/config_parse.py
@@ -34,7 +34,7 @@ def hostroles(s, seq, host=None):
def hostmacs(s, seq, host=None):
return host.get('mac', '')
-def export_config_file(s, conf_dir, ofile):
+def export_config_file(s, config_file, conf_dir, ofile):
env = {}
env.update(s)
if env.get('hosts', []):
@@ -47,6 +47,7 @@ def export_config_file(s, conf_dir, ofile):
env.update({'FLAVOR': s.get('FLAVOR', "cluster")})
env.update({'HOSTNAMES': hostnames(s, ',')})
env.update({'HOST_ROLES': hostroles(s, ';')})
+ env.update({'DHA': config_file})
value = hostmacs(s, ',')
if len(value) > 0:
@@ -82,7 +83,7 @@ if __name__ == "__main__":
data = init(config_file)
- export_config_file(data, conf_dir, os.path.join(output_dir, output_file))
+ export_config_file(data, config_file, conf_dir, os.path.join(output_dir, output_file))
export_reset_file(data, tmpl_dir, output_dir, os.path.join(output_dir, output_file))
sys.exit(0)