lib/idlc-sdk-deploy/power.rb in idlc-sdk-deploy-1.0.0.rc11 vs lib/idlc-sdk-deploy/power.rb in idlc-sdk-deploy-1.0.0.rc12

- old
+ new

@@ -10,11 +10,11 @@ def start_instance(instance, async=false) msg('Starting Instance...') instance.start( dry_run: false ) - unless async do + unless async obj = instance.wait_until_running msg('Started Instance: ' + get_name(obj.tags)) end end @@ -23,10 +23,10 @@ msg('Stopping Instance...') instance.stop( dry_run: false ) - unless async do + unless async obj = instance.wait_until_stopped msg('Stopped Instance: ' + get_name(obj.tags)) end end