summaryrefslogtreecommitdiffstats
path: root/deploy
diff options
context:
space:
mode:
authorJulien <zhang.jun3g@zte.com.cn>2017-02-14 23:49:40 +0800
committerJulien <zhang.jun3g@zte.com.cn>2017-02-14 23:53:42 +0800
commit8efac1945dae1f06de01ae7b4ed28c5038c27031 (patch)
tree1499d6ab441f977db6a9f03b7e93e16c07947fea /deploy
parentab673345ef81ef3c46c62161648dc0eee84361f8 (diff)
Refactor for get_para_from_deploy
Change-Id: I6d8fb4df38bf0749222a2b967a76222c273a7549 Signed-off-by: Julien <zhang.jun3g@zte.com.cn>
Diffstat (limited to 'deploy')
-rwxr-xr-xdeploy/get_para_from_deploy.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/deploy/get_para_from_deploy.py b/deploy/get_para_from_deploy.py
index c0e08c56..d142af3a 100755
--- a/deploy/get_para_from_deploy.py
+++ b/deploy/get_para_from_deploy.py
@@ -41,12 +41,10 @@ def get_conf_from_deploy():
parse(conf, sys.argv[1:])
daisyserver_size, controller_node_size, compute_node_size,\
daisy_passwd, daisy_ip, daisy_gateway = get_yml_para(conf['dha'])
- print daisyserver_size
- print controller_node_size
- print compute_node_size
- print daisy_passwd
- print daisy_ip
- print daisy_gateway
+ print "{ip} {passwd} -s {size} -g {gateway}".format(passwd=daisy_passwd,
+ size=daisyserver_size,
+ ip=daisy_ip,
+ gateway=daisy_gateway)
if __name__ == "__main__":
get_conf_from_deploy()