summaryrefslogtreecommitdiffstats
path: root/deploy/reap.py
diff options
context:
space:
mode:
Diffstat (limited to 'deploy/reap.py')
-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']]