From abfc71804f3d7e84cea6fee25697783f7160f9ec Mon Sep 17 00:00:00 2001 From: Alex Yang Date: Tue, 9 Jan 2018 15:01:46 +0800 Subject: Provide default password for daisy server There is no PDF for virtual pods now. And daisy_passwd was deleted from the deploy.yml of zte-virtual1 in pharos. Change-Id: I0a6fba8fa634806a21779a382f5ff07f9450e270 Signed-off-by: Alex Yang --- deploy/get_conf.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'deploy') diff --git a/deploy/get_conf.py b/deploy/get_conf.py index 97d2feba..bd72aabb 100755 --- a/deploy/get_conf.py +++ b/deploy/get_conf.py @@ -125,6 +125,8 @@ def get_yml_para(dha_file): controller_node_size = disks.get("controller", 0) compute_node_size = disks.get("compute", 0) daisy_passwd = data.get("daisy_passwd", "") + if not daisy_passwd: + daisy_passwd = "r00tme" daisy_ip = data.get("daisy_ip", "") daisy_gateway = data.get("daisy_gateway", "") daisy_target_node = data.get("hosts", "") @@ -140,9 +142,9 @@ def get_conf_from_deploy(): daisyserver_size, controller_node_size, compute_node_size,\ daisy_passwd, daisy_ip, daisy_gateway,\ hosts_num = get_yml_para(conf['dha']) - print "{hosts_num} {ip} {passwd} -s {size} -g {gateway}".format( + print "{hosts_num} {ip} {daisy_passwd} -s {size} -g {gateway}".format( hosts_num=hosts_num, - passwd=daisy_passwd, + daisy_passwd=daisy_passwd, size=daisyserver_size, ip=daisy_ip, gateway=daisy_gateway) -- cgit 1.2.3-korg