From d5f0a7dbbf67ed46624701e6f03a647b6766aec1 Mon Sep 17 00:00:00 2001 From: Narinder Gupta Date: Mon, 13 Feb 2017 06:53:01 -0600 Subject: [PATCH] generate deployconfig.yaml if only labconfig.yaml exist. Change-Id: Ic40c082f0c09fcc269a8855a21c9f4828361bf2f Signed-off-by: Narinder Gupta --- ci/clean.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- 2.16.6