Skip to content

Commit

Permalink
prepping 0.0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
Dougal Ballantyne committed Jul 1, 2014
1 parent 0d61420 commit 00b537a
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 4 deletions.
24 changes: 21 additions & 3 deletions cli/cfncluster/cfncluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,16 @@ def get_ec2_instances(stack, config):
temp_resources = []

while True:
resources = cfnconn.describe_stack_resources(stack)
try:
resources = cfnconn.describe_stack_resources(stack)
except boto.exception.BotoServerError as e:
if e.message.endswith("does not exist"):
#sys.stdout.write('\r\n')
print e.message
sys.stdout.flush()
sys.exit(0)
else:
raise e
temp_resources.extend(resources)
if not resources.next_token:
break
Expand All @@ -165,7 +174,16 @@ def get_asg_instances(stack, config):
temp_resources = []

while True:
resources = cfnconn.describe_stack_resources(stack)
try:
resources = cfnconn.describe_stack_resources(stack)
except boto.exception.BotoServerError as e:
if e.message.endswith("does not exist"):
#sys.stdout.write('\r\n')
print e.message
sys.stdout.flush()
sys.exit(0)
else:
raise e
temp_resources.extend(resources)
if not resources.next_token:
break
Expand Down Expand Up @@ -207,7 +225,7 @@ def status(args):
sys.stdout.write('\rStatus: %s' % status)
sys.stdout.flush()
if not args.nowait:
while ((status != 'CREATE_COMPLETE') and (status != 'UPDATE_COMPLETE')):
while ((status != 'CREATE_COMPLETE') and (status != 'UPDATE_COMPLETE') and (status != 'ROLLBACK_COMPLETE')):
time.sleep(5)
status = cfnconn.describe_stacks(stack)[0].stack_status
events = cfnconn.describe_stack_events(stack)[0]
Expand Down
2 changes: 1 addition & 1 deletion cli/cfncluster/examples/config
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Default cluster config section.
cluster_template = default
# Check for updates
update_check = false
update_check = true

[aws]
# This is the AWS credentials section (required).
Expand Down

0 comments on commit 00b537a

Please sign in to comment.