generate deployconfig.yaml if only labconfig.yaml exist. 15/28515/1
authorNarinder Gupta <narinder.gupta@canonical.com>
Mon, 13 Feb 2017 12:53:01 +0000 (06:53 -0600)
committerNarinder Gupta <narinder.gupta@canonical.com>
Mon, 13 Feb 2017 12:53:41 +0000 (06:53 -0600)
Change-Id: Ic40c082f0c09fcc269a8855a21c9f4828361bf2f
Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
ci/clean.sh

index 68d4dd3..211bcaa 100755 (executable)
@@ -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