[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:33 UTC 2013
The following commit has been merged in the master branch:
commit f5960e268fe7e2f25227d506a814e394b20f16be
Author: Garrett Holmstrom <gholms at fedoraproject.org>
Date: Thu Feb 28 17:56:44 2013 -0800
Implement DescribeScalingProcesses
Fixes TOOLS-215
diff --git a/bin/kilo-describe-process-types b/bin/kilo-describe-process-types
new file mode 100755
index 0000000..2b58823
--- /dev/null
+++ b/bin/kilo-describe-process-types
@@ -0,0 +1,6 @@
+#!/usr/bin/python -tt
+
+import euca2ools.commands.autoscaling.describescalingprocesstypes
+
+if __name__ == '__main__':
+ euca2ools.commands.autoscaling.describescalingprocesstypes.DescribeScalingProcessTypes.run()
diff --git a/euca2ools/commands/euare/getldapsyncstatus.py b/euca2ools/commands/autoscaling/describescalingprocesstypes.py
similarity index 78%
copy from euca2ools/commands/euare/getldapsyncstatus.py
copy to euca2ools/commands/autoscaling/describescalingprocesstypes.py
index 7f44ed5..0fa8ffd 100644
--- a/euca2ools/commands/euare/getldapsyncstatus.py
+++ b/euca2ools/commands/autoscaling/describescalingprocesstypes.py
@@ -1,6 +1,6 @@
# Software License Agreement (BSD License)
#
-# Copyright (c) 2009-2013, Eucalyptus Systems, Inc.
+# Copyright (c) 2013, Eucalyptus Systems, Inc.
# All rights reserved.
#
# Redistribution and use of this software in source and binary forms, with or
@@ -28,13 +28,13 @@
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
+from euca2ools.commands.autoscaling import AutoScalingRequest
from requestbuilder.mixins import TabifyingCommand
-from . import EuareRequest
-class GetLdapSyncStatus(EuareRequest, TabifyingCommand):
- DESCRIPTION = ("[Eucalyptus only] Describe the server's current LDAP "
- "synchronization status. This command is only usable by "
- "cloud administrators.")
+class DescribeScalingProcessTypes(AutoScalingRequest, TabifyingCommand):
+ DESCRIPTION = 'List all types of scaling processes'
+ LIST_MARKERS = ['Processes']
def print_result(self, result):
- print self.tabify(('SyncEnabled', result.get('SyncEnabled')))
+ for process in result.get('Processes', []):
+ print self.tabify(('PROCESS', process.get('ProcessName')))
--
managing cloud instances for Eucalyptus
More information about the pkg-eucalyptus-commits
mailing list