aboutsummaryrefslogtreecommitdiffstats
path: root/deploy
diff options
context:
space:
mode:
authorJonas Bjurel <jonas.bjurel@ericsson.com>2016-05-25 21:30:32 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2016-05-25 21:30:32 +0000
commit370cf3546e2f5e3a7afa69b4f306bd7c90d44397 (patch)
treecabad8c43a6a2a1507868e94582560ddeebd4089 /deploy
parentb0b2e869cae884aaed305f2984701dc813a469ec (diff)
parent71f00159f1613cfa2f1bcc27b693728ad8a58887 (diff)
Merge "More rigorous Fuel environment check"
Diffstat (limited to 'deploy')
-rwxr-xr-xdeploy/reap.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/deploy/reap.py b/deploy/reap.py
index bf64d405a..22a55e75a 100755
--- a/deploy/reap.py
+++ b/deploy/reap.py
@@ -92,8 +92,10 @@ class Reap(object):
def get_env(self):
env_list = parse(exec_cmd('fuel env'))
- if len(env_list) > 1:
- err('Not exactly one environment')
+ if len(env_list) == 0:
+ err('No environment deployed')
+ elif len(env_list) > 1:
+ err('More than 1 environment deployed')
self.env = env_list[0]
self.env_id = self.env[E['id']]