[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:43 UTC 2013
The following commit has been merged in the master branch:
commit 2e25ce9f7703d01db4e8db6a3e06031c948f0c45
Author: Garrett Holmstrom <gholms at fedoraproject.org>
Date: Tue Mar 19 18:18:01 2013 -0700
Implement DeleteAlarms
Fixes TOOLS-257
diff --git a/bin/euwatch-delete-alarms b/bin/euwatch-delete-alarms
new file mode 100755
index 0000000..2a19bbe
--- /dev/null
+++ b/bin/euwatch-delete-alarms
@@ -0,0 +1,6 @@
+#!/usr/bin/python -tt
+
+import euca2ools.commands.monitoring.deletealarms
+
+if __name__ == '__main__':
+ euca2ools.commands.monitoring.deletealarms.DeleteAlarms.run()
diff --git a/euca2ools/commands/autoscaling/deletelaunchconfiguration.py b/euca2ools/commands/monitoring/deletealarms.py
similarity index 79%
copy from euca2ools/commands/autoscaling/deletelaunchconfiguration.py
copy to euca2ools/commands/monitoring/deletealarms.py
index 60331ce..a86d2ef 100644
--- a/euca2ools/commands/autoscaling/deletelaunchconfiguration.py
+++ b/euca2ools/commands/monitoring/deletealarms.py
@@ -29,13 +29,13 @@
# POSSIBILITY OF SUCH DAMAGE.
import argparse
-from euca2ools.commands.autoscaling import AutoScalingRequest
+from euca2ools.commands.monitoring import CloudWatchRequest
from requestbuilder import Arg
-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 DeleteAlarms(CloudWatchRequest):
+ DESCRIPTION = 'Delete alarms'
+ ARGS = [Arg('AlarmNames.member', metavar='ALARM', nargs='+',
+ help='names of the alarms to delete'),
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