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


The following commit has been merged in the master branch:
commit 63d44d80c76122173262737700e129b8349e8aa6
Author: Garrett Holmstrom <gholms at fedoraproject.org>
Date:   Tue Feb 26 15:56:40 2013 -0800

    Implement DeleteLaunchConfiguration
    
    Fixes TOOLS-208

diff --git a/bin/kilo-delete-launch-config b/bin/kilo-delete-launch-config
new file mode 100755
index 0000000..68a3a60
--- /dev/null
+++ b/bin/kilo-delete-launch-config
@@ -0,0 +1,6 @@
+#!/usr/bin/python -tt
+
+import euca2ools.commands.autoscaling.deletelaunchconfiguration
+
+if __name__ == '__main__':
+    euca2ools.commands.autoscaling.deletelaunchconfiguration.DeleteLaunchConfiguration.run()
diff --git a/euca2ools/commands/walrus/deletebucket.py b/euca2ools/commands/autoscaling/deletelaunchconfiguration.py
similarity index 75%
copy from euca2ools/commands/walrus/deletebucket.py
copy to euca2ools/commands/autoscaling/deletelaunchconfiguration.py
index f8ed998..5593a2a 100644
--- a/euca2ools/commands/walrus/deletebucket.py
+++ b/euca2ools/commands/autoscaling/deletelaunchconfiguration.py
@@ -28,18 +28,13 @@
 # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 # POSSIBILITY OF SUCH DAMAGE.
 
+import argparse
 from requestbuilder import Arg
-from . import WalrusRequest, validate_generic_bucket_name
+from euca2ools.commands.autoscaling import AutoScalingRequest
 
-class DeleteBucket(WalrusRequest):
-    DESCRIPTION = 'Delete a bucket'
-    ARGS = [Arg('bucket', route_to=None, help='name of the bucket to delete')]
-
-    def configure(self):
-        WalrusRequest.configure(self)
-        validate_generic_bucket_name(self.args['bucket'])
-
-    def main(self):
-        self.method = 'DELETE'
-        self.path = self.args['bucket']
-        self.send()
+class DeleteLaunchConfiguration(AutoScalingRequest):
+    DESCRIPTION = 'Delete an auto-scaling instance launch configuration'
+    ARGS = [Arg('LaunchConfigurationName', metavar='LAUNCH_CONFIG',
+                help='name of the launch configuration to delete (required)'),
+            Arg('-f', '--force', action='store_true', route_to=None,
+                help=argparse.SUPPRESS)]  # For compatibility

-- 
managing cloud instances for Eucalyptus



More information about the pkg-eucalyptus-commits mailing list