[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 7601b28d2579ddf7ee5c707abe8e2d68c8ea80ed
Author: Garrett Holmstrom <gholms at fedoraproject.org>
Date:   Tue Mar 5 16:27:13 2013 -0800

    Implement DeletePolicy
    
    Fixes TOOLS-217

diff --git a/bin/kilo-delete-policy b/bin/kilo-delete-policy
new file mode 100755
index 0000000..97d9093
--- /dev/null
+++ b/bin/kilo-delete-policy
@@ -0,0 +1,6 @@
+#!/usr/bin/python -tt
+
+import euca2ools.commands.autoscaling.deletepolicy
+
+if __name__ == '__main__':
+    euca2ools.commands.autoscaling.deletepolicy.DeletePolicy.run()
diff --git a/euca2ools/commands/autoscaling/deleteautoscalinggroup.py b/euca2ools/commands/autoscaling/deletepolicy.py
similarity index 74%
copy from euca2ools/commands/autoscaling/deleteautoscalinggroup.py
copy to euca2ools/commands/autoscaling/deletepolicy.py
index d11061c..e0d13ad 100644
--- a/euca2ools/commands/autoscaling/deleteautoscalinggroup.py
+++ b/euca2ools/commands/autoscaling/deletepolicy.py
@@ -29,17 +29,16 @@
 # POSSIBILITY OF SUCH DAMAGE.
 
 import argparse
-from requestbuilder import Arg
 from euca2ools.commands.autoscaling import AutoScalingRequest
+from requestbuilder import Arg
 
 
-class DeleteAutoScalingGroup(AutoScalingRequest):
-    DESCRIPTION = 'Delete an auto-scaling group'
-    ARGS = [Arg('AutoScalingGroupName', metavar='NAME',
-                help='name of the auto-scaling group to delete (required)'),
-            Arg('-d', '--force-delete', dest='ForceDelete',
-                action='store_const', const='true',
-                help='''delete the group and all of its instances without
-                waiting for all instances to terminate'''),
-            Arg('-f', '--force', action='store_true', route_to=None,
+class DeletePolicy(AutoScalingRequest):
+    DESCRIPTION = 'Delete a scaling policy'
+    ARGS = [Arg('PolicyName', metavar='POLICY',
+                help='name of the policy to delete (required)'),
+            Arg('-g', '--auto-scaling-group', dest='AutoScalingGroupName',
+                metavar='ASGROUP', required=True, help='''name of the
+                auto-scaling group the policy is associated with (required)'''),
+            Arg('-f', '--force', route_to=None, action='store_true',
                 help=argparse.SUPPRESS)]  # for compatibility

-- 
managing cloud instances for Eucalyptus



More information about the pkg-eucalyptus-commits mailing list