Commit 12009b0 1 parent 965e7c2 commit 12009b0 Copy full SHA for 12009b0
File tree 1 file changed +5
-0
lines changed
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -647,6 +647,7 @@ def launch_and_configure(ec2_args):
647
647
648
648
649
649
def send_hipchat_message (message ):
650
+ print (message )
650
651
#If hipchat is configured send the details to the specified room
651
652
if args .hipchat_api_token and args .hipchat_room_id :
652
653
import hipchat
@@ -710,6 +711,7 @@ def send_hipchat_message(message):
710
711
else :
711
712
base_ami = args .base_ami
712
713
714
+ error_in_abbey_run = False
713
715
try :
714
716
sqs_queue = None
715
717
instance_id = None
@@ -749,6 +751,7 @@ def send_hipchat_message(message):
749
751
play = args .play ,
750
752
exception = repr (e ))
751
753
send_hipchat_message (message )
754
+ error_in_abbey_run = True
752
755
finally :
753
756
print
754
757
if not args .no_cleanup and not args .noop :
@@ -761,3 +764,5 @@ def send_hipchat_message(message):
761
764
# Check to make sure we have an instance id.
762
765
if instance_id :
763
766
ec2 .terminate_instances (instance_ids = [instance_id ])
767
+ if error_in_abbey_run :
768
+ exit (1 )
You can’t perform that action at this time.
0 commit comments