From: Narinder Gupta Date: Mon, 13 Feb 2017 12:53:01 +0000 (-0600) Subject: generate deployconfig.yaml if only labconfig.yaml exist. X-Git-Tag: danube.1.0~42 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=d5f0a7dbbf67ed46624701e6f03a647b6766aec1;p=joid.git generate deployconfig.yaml if only labconfig.yaml exist. Change-Id: Ic40c082f0c09fcc269a8855a21c9f4828361bf2f Signed-off-by: Narinder Gupta --- diff --git a/ci/clean.sh b/ci/clean.sh index 68d4dd36..211bcaa3 100755 --- a/ci/clean.sh +++ b/ci/clean.sh @@ -7,7 +7,11 @@ jujuver=`juju --version` if [[ "$jujuver" > "2" ]]; then if [ ! -d labconfig.yaml ]; then cp ~/joid_config/labconfig.yaml ./labconfig.yaml || true - cp ~/joid_config/deployconfig.yaml ./deployconfig.yaml || true + if [ -d $HOME/joid_config/deployconfig.yaml ]; then + cp ~/joid_config/deployconfig.yaml ./deployconfig.yaml || true + else + python genDeploymentConfig.py -l labconfig.yaml > deployconfig.yaml + fi fi else if [ ! -d environments.yaml ]; then