[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:30 UTC 2013
The following commit has been merged in the master branch:
commit 506e2302c2f2b4d7349309457e4930af6cdc4061
Author: Garrett Holmstrom <gholms at fedoraproject.org>
Date: Wed Feb 27 14:44:10 2013 -0800
Implement DeleteAutoScalingGroup
Fixes TOOLS-203
diff --git a/bin/kilo-delete-auto-scaling-group b/bin/kilo-delete-auto-scaling-group
new file mode 100755
index 0000000..0d90158
--- /dev/null
+++ b/bin/kilo-delete-auto-scaling-group
@@ -0,0 +1,6 @@
+#!/usr/bin/python -tt
+
+import euca2ools.commands.autoscaling.deleteautoscalinggroup
+
+if __name__ == '__main__':
+ euca2ools.commands.autoscaling.deleteautoscalinggroup.DeleteAutoScalingGroup.run()
diff --git a/euca2ools/commands/autoscaling/deletelaunchconfiguration.py b/euca2ools/commands/autoscaling/deleteautoscalinggroup.py
similarity index 74%
copy from euca2ools/commands/autoscaling/deletelaunchconfiguration.py
copy to euca2ools/commands/autoscaling/deleteautoscalinggroup.py
index 61a1dac..d11061c 100644
--- a/euca2ools/commands/autoscaling/deletelaunchconfiguration.py
+++ b/euca2ools/commands/autoscaling/deleteautoscalinggroup.py
@@ -32,9 +32,14 @@ import argparse
from requestbuilder import Arg
from euca2ools.commands.autoscaling import AutoScalingRequest
-class DeleteLaunchConfiguration(AutoScalingRequest):
- DESCRIPTION = 'Delete an auto-scaling instance launch configuration'
- ARGS = [Arg('LaunchConfigurationName', metavar='LAUNCHCONFIG',
- help='name of the launch configuration to delete (required)'),
+
+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,
- help=argparse.SUPPRESS)] # For compatibility
+ help=argparse.SUPPRESS)] # for compatibility
--
managing cloud instances for Eucalyptus
More information about the pkg-eucalyptus-commits
mailing list