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


The following commit has been merged in the master branch:
commit 4be19fdaf816a82a17e72e9e493c1adedf8d1f2e
Author: Garrett Holmstrom <gholms at fedoraproject.org>
Date:   Thu Mar 7 13:41:06 2013 -0800

    Implement PutNotificationConfiguration
    
    Fixes TOOLS-228

diff --git a/bin/kilo-put-notification-configuration b/bin/kilo-put-notification-configuration
new file mode 100755
index 0000000..5c31d2c
--- /dev/null
+++ b/bin/kilo-put-notification-configuration
@@ -0,0 +1,6 @@
+#!/usr/bin/python -tt
+
+import euca2ools.commands.autoscaling.putnotificationconfiguration
+
+if __name__ == '__main__':
+    euca2ools.commands.autoscaling.putnotificationconfiguration.PutNotificationConfiguration.run()
diff --git a/euca2ools/commands/autoscaling/disablemetricscollection.py b/euca2ools/commands/autoscaling/putnotificationconfiguration.py
similarity index 72%
copy from euca2ools/commands/autoscaling/disablemetricscollection.py
copy to euca2ools/commands/autoscaling/putnotificationconfiguration.py
index a29572b..0c59619 100644
--- a/euca2ools/commands/autoscaling/disablemetricscollection.py
+++ b/euca2ools/commands/autoscaling/putnotificationconfiguration.py
@@ -33,10 +33,15 @@ from euca2ools.commands.argtypes import delimited_list
 from euca2ools.commands.autoscaling import AutoScalingRequest
 
 
-class DisableMetricsCollection(AutoScalingRequest):
-    DESCRIPTION = "Disable monitoring of an auto-scaling group's group metrics"
+class PutNotificationConfiguration(AutoScalingRequest):
+    DESCRIPTION = ("Create or replace an auto-scaling group's notification "
+                   "configuration")
     ARGS = [Arg('AutoScalingGroupName', metavar='ASGROUP',
                 help='name of the auto-scaling group to update (required)'),
-            Arg('-m', '--metrics', dest='Metrics.member',
-                metavar='METRIC,METRIC,...', type=delimited_list(','),
-                help='list of metrics to disable (default: all metrics)')]
+            Arg('-n', '--notification-types', dest='NotificationTypes.member',
+                metavar='TYPE,TYPE,...', type=delimited_list(','),
+                required=True, help=('''comma-separated list of event types
+                that will trigger notification (required)''')),
+            Arg('-t', '--topic-arn', dest='TopicARN', metavar='ARN',
+                required=True, help='''ARN of the SNS topic to publish
+                notifications to (required)''')]

-- 
managing cloud instances for Eucalyptus



More information about the pkg-eucalyptus-commits mailing list