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


The following commit has been merged in the master branch:
commit 8cf8462b93cb389ed4a6fb96b34aefb31e903ba2
Author: Garrett Holmstrom <gholms at fedoraproject.org>
Date:   Sun Mar 31 18:49:19 2013 -0700

    Implement DeregisterInstanceFromLoadBalancer
    
    Fixes TOOLS-250

diff --git a/bin/euelb-deregister-instances-from-lb b/bin/euelb-deregister-instances-from-lb
new file mode 100755
index 0000000..759b068
--- /dev/null
+++ b/bin/euelb-deregister-instances-from-lb
@@ -0,0 +1,6 @@
+#!/usr/bin/python -tt
+
+import euca2ools.commands.elasticloadbalancing.deregisterinstancesfromloadbalancer
+
+if __name__ == '__main__':
+    euca2ools.commands.elasticloadbalancing.deregisterinstancesfromloadbalancer.DeregisterInstancesFromLoadBalancer.run()
diff --git a/euca2ools/commands/elasticloadbalancing/registerinstanceswithloadbalancer.py b/euca2ools/commands/elasticloadbalancing/deregisterinstancesfromloadbalancer.py
similarity index 89%
copy from euca2ools/commands/elasticloadbalancing/registerinstanceswithloadbalancer.py
copy to euca2ools/commands/elasticloadbalancing/deregisterinstancesfromloadbalancer.py
index 039a846..cdab494 100644
--- a/euca2ools/commands/elasticloadbalancing/registerinstanceswithloadbalancer.py
+++ b/euca2ools/commands/elasticloadbalancing/deregisterinstancesfromloadbalancer.py
@@ -38,15 +38,15 @@ def instance(inst_as_str):
     return {'InstanceId': inst_as_str}
 
 
-class RegisterInstancesWithLoadBalancer(ELBRequest, TabifyingCommand):
-    DESCRIPTION = 'Add one or more instances to a load balancer'
+class DeregisterInstancesFromLoadBalancer(ELBRequest, TabifyingCommand):
+    DESCRIPTION = 'Remove one or more instances from a load balancer'
     ARGS = [Arg('LoadBalancerName', metavar='ELB',
                 help='name of the load balancer to modify (required)'),
             Arg('--instances', dest='Instances.member', required=True,
                 metavar='INSTANCE1,INSTANCE2,...',
                 type=delimited_list(',', item_type=instance),
-                help='''IDs of the instances to register with the load
-                balancer (required)''')]
+                help='''IDs of the instances to remove from the load balancer
+                (required)''')]
     LIST_TAGS = ['Instances']
 
     def print_result(self, result):

-- 
managing cloud instances for Eucalyptus



More information about the pkg-eucalyptus-commits mailing list