diff options
author | Narinder Gupta <narinder.gupta@canonical.com> | 2017-02-08 08:23:50 -0600 |
---|---|---|
committer | Narinder Gupta <narinder.gupta@canonical.com> | 2017-02-09 07:46:38 -0600 |
commit | a49eb95b10d50cb1eb428ba4a5ce2cd90e17f6d6 (patch) | |
tree | de1eedf9cf1e9429243eeca5483299249ae76497 /ci/deploy.sh | |
parent | 7070d937e339f1e6b4c6e9daca39f45a6207ff2b (diff) |
to fix ODL issue.
Change-Id: Iae384f8ba902cc001b7ffd2d55fcbef25333ecba
Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
Diffstat (limited to 'ci/deploy.sh')
-rwxr-xr-x | ci/deploy.sh | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/ci/deploy.sh b/ci/deploy.sh index 89dcfe0b..d933dbef 100755 --- a/ci/deploy.sh +++ b/ci/deploy.sh @@ -126,7 +126,15 @@ deploy() { python genDeploymentConfig.py -l labconfig.yaml > deployconfig.yaml fi else - echo " MAAS not deployed please deploy MAAS first." + if [ -e ./labconfig.yaml ]; then + if [ ! -f ./deployconfig.yaml ] && [ -e ~/joid_config/deployconfig.yaml ]; then + cp ~/joid_config/deployconfig.yaml ./deployconfig.yaml + else + python genDeploymentConfig.py -l labconfig.yaml > deployconfig.yaml + fi + else + echo " MAAS not deployed please deploy MAAS first." + fi fi else if [ ! -f ./environments.yaml ] && [ -e ~/.juju/environments.yaml ]; then |