[pkg-eucalyptus-commits] [SCM] managing cloud instances for Eucalyptus branch, master, updated. 3.0.0-alpha3-257-g1da8e3a

Garrett Holmstrom gholms at fedoraproject.org
Sun Jun 16 02:30:35 UTC 2013


The following commit has been merged in the master branch:
commit ec80f049d561271bef86e32aeac450afedd744be
Author: Garrett Holmstrom <gholms at fedoraproject.org>
Date:   Tue Mar 5 17:09:21 2013 -0800

    Implement ExecutePolicy
    
    Fixes TOOLS-220

diff --git a/bin/kilo-execute-policy b/bin/kilo-execute-policy
new file mode 100755
index 0000000..b3d9eae
--- /dev/null
+++ b/bin/kilo-execute-policy
@@ -0,0 +1,6 @@
+#!/usr/bin/python -tt
+
+import euca2ools.commands.autoscaling.executepolicy
+
+if __name__ == '__main__':
+    euca2ools.commands.autoscaling.executepolicy.ExecutePolicy.run()
diff --git a/euca2ools/commands/autoscaling/setdesiredcapacity.py b/euca2ools/commands/autoscaling/executepolicy.py
similarity index 82%
copy from euca2ools/commands/autoscaling/setdesiredcapacity.py
copy to euca2ools/commands/autoscaling/executepolicy.py
index d76d75e..0a91b17 100644
--- a/euca2ools/commands/autoscaling/setdesiredcapacity.py
+++ b/euca2ools/commands/autoscaling/executepolicy.py
@@ -28,17 +28,17 @@
 # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 # POSSIBILITY OF SUCH DAMAGE.
 
-from requestbuilder import Arg
 from euca2ools.commands.autoscaling import AutoScalingRequest
+from requestbuilder import Arg
 
 
-class SetDesiredCapacity(AutoScalingRequest):
-    DESCRIPTION = "Set an auto-scaling group's desired capacity"
-    ARGS = [Arg('AutoScalingGroupName', metavar='NAME',
-                help='name of the auto-scaling group to update (required)'),
-            Arg('-c', '--desired-capacity', dest='DesiredCapacity', type=int,
-                required=True,
-                help='new capacity setting for the group (required)'),
+class ExecutePolicy(AutoScalingRequest):
+    DESCRIPTION = "Manually set an auto-scaling instance's health status"
+    ARGS = [Arg('PolicyName', metavar='POLICY',
+                help='name or ARN of the policy to run (required)'),
+            Arg('-g', '--auto-scaling-group', dest='AutoScalingGroupName',
+                metavar='ASGROUP',
+                help='name or ARN of the auto-scaling group'),
             Arg('-h', '--honor-cooldown', dest='HonorCooldown',
                 action='store_const', const='true',
                 help='''reject the request if the group is in cooldown

-- 
managing cloud instances for Eucalyptus



More information about the pkg-eucalyptus-commits mailing list