Commits

Pior Bastida committed a321232

Fix wrong current_capacity displayed in autoscale update utility

Comments (0)

Files changed (1)

awstools/utils/autoscale.py

 
 def update_asg_capacity(asg, desired=None, minlimit=None, maxlimit=None):
     print("Current limits: %s:%s" % (asg.min_size, asg.max_size))
-    print("Current desired capacity %s" % desired)
+    print("Current desired capacity %s" % asg.desired_capacity)
 
     changed = False
 
 
     if changed:
         asg.update()
-
-    print("Success")
+        print("Success")
+    else:
+        print("Nothing to update")