[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:34 UTC 2013


The following commit has been merged in the master branch:
commit 5dbb0744383899b6e218358356c7342522b31d4a
Author: Garrett Holmstrom <gholms at fedoraproject.org>
Date:   Tue Mar 5 14:13:51 2013 -0800

    Implement ResumeProcesses
    
    Fixes TOOLS-214

diff --git a/bin/kilo-resume-processes b/bin/kilo-resume-processes
new file mode 100755
index 0000000..91b8767
--- /dev/null
+++ b/bin/kilo-resume-processes
@@ -0,0 +1,6 @@
+#!/usr/bin/python -tt
+
+import euca2ools.commands.autoscaling.resumeprocesses
+
+if __name__ == '__main__':
+    euca2ools.commands.autoscaling.resumeprocesses.ResumeProcesses.run()
diff --git a/euca2ools/commands/autoscaling/deleteautoscalinggroup.py b/euca2ools/commands/autoscaling/resumeprocesses.py
similarity index 74%
copy from euca2ools/commands/autoscaling/deleteautoscalinggroup.py
copy to euca2ools/commands/autoscaling/resumeprocesses.py
index d11061c..6bf8859 100644
--- a/euca2ools/commands/autoscaling/deleteautoscalinggroup.py
+++ b/euca2ools/commands/autoscaling/resumeprocesses.py
@@ -28,18 +28,16 @@
 # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 # POSSIBILITY OF SUCH DAMAGE.
 
-import argparse
 from requestbuilder import Arg
+from euca2ools.commands.argtypes import delimited_list
 from euca2ools.commands.autoscaling import AutoScalingRequest
 
 
-class DeleteAutoScalingGroup(AutoScalingRequest):
-    DESCRIPTION = 'Delete an auto-scaling group'
+class ResumeProcesses(AutoScalingRequest):
+    DESCRIPTION = "Resume an auto-scaling group's auto-scaling processes"
     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='name of the auto-scaling group to update (required)'),
+            Arg('--processes', dest='ScalingProcesses.member',
+                metavar='PROCESS,PROCESS,...', type=delimited_list(','),
+                help='''comma-separated list of auto-scaling processes to
+                resume (default: all processes)''')]

-- 
managing cloud instances for Eucalyptus



More information about the pkg-eucalyptus-commits mailing list