summaryrefslogtreecommitdiffstats
path: root/ci
diff options
context:
space:
mode:
authorNarinder Gupta <narinder.gupta@canonical.com>2017-02-13 06:53:01 -0600
committerNarinder Gupta <narinder.gupta@canonical.com>2017-02-13 06:53:41 -0600
commitd5f0a7dbbf67ed46624701e6f03a647b6766aec1 (patch)
tree37bae43820d1fe5e4db946d4c0b184d2e8e81baf /ci
parent7b7d4454f192ef25a3ff200c156dcd840d09a91e (diff)
generate deployconfig.yaml if only labconfig.yaml exist.
Change-Id: Ic40c082f0c09fcc269a8855a21c9f4828361bf2f Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
Diffstat (limited to 'ci')
-rwxr-xr-xci/clean.sh6
1 files changed, 5 insertions, 1 deletions
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