[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 ed23a76bb3947425d85e0242dfae909c68e1db81
Author: Garrett Holmstrom <gholms at fedoraproject.org>
Date: Tue Mar 5 13:56:20 2013 -0800
Implement DescribeAdjustmentTypes
Fixes TOOLS-218
diff --git a/bin/kilo-describe-adjustment-types b/bin/kilo-describe-adjustment-types
new file mode 100755
index 0000000..c04016e
--- /dev/null
+++ b/bin/kilo-describe-adjustment-types
@@ -0,0 +1,6 @@
+#!/usr/bin/python -tt
+
+import euca2ools.commands.autoscaling.describeadjustmenttypes
+
+if __name__ == '__main__':
+ euca2ools.commands.autoscaling.describeadjustmenttypes.DescribeAdjustmentTypes.run()
diff --git a/euca2ools/commands/autoscaling/describescalingprocesstypes.py b/euca2ools/commands/autoscaling/describeadjustmenttypes.py
similarity index 80%
copy from euca2ools/commands/autoscaling/describescalingprocesstypes.py
copy to euca2ools/commands/autoscaling/describeadjustmenttypes.py
index 0fa8ffd..d09d6cd 100644
--- a/euca2ools/commands/autoscaling/describescalingprocesstypes.py
+++ b/euca2ools/commands/autoscaling/describeadjustmenttypes.py
@@ -31,10 +31,12 @@
from euca2ools.commands.autoscaling import AutoScalingRequest
from requestbuilder.mixins import TabifyingCommand
-class DescribeScalingProcessTypes(AutoScalingRequest, TabifyingCommand):
- DESCRIPTION = 'List all types of scaling processes'
- LIST_MARKERS = ['Processes']
+class DescribeAdjustmentTypes(AutoScalingRequest, TabifyingCommand):
+ DESCRIPTION = ('Describe policy adjustment types usable with scaling '
+ 'policies')
+ LIST_MARKERS = ['AdjustmentTypes']
def print_result(self, result):
- for process in result.get('Processes', []):
- print self.tabify(('PROCESS', process.get('ProcessName')))
+ for adj_type in result.get('AdjustmentTypes', []):
+ print self.tabify(('ADJUSTMENT-TYPE',
+ adj_type.get('AdjustmentType')))
--
managing cloud instances for Eucalyptus
More information about the pkg-eucalyptus-commits
mailing list