[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:29:54 UTC 2013
The following commit has been merged in the master branch:
commit 988c72586857ec1dedf2ff6e55263c2c7280a469
Author: Garrett Holmstrom <gholms at fedoraproject.org>
Date: Sat May 19 15:12:32 2012 -0700
Rewrite DeleteLoginProfile
diff --git a/bin/euare-userdelloginprofile b/bin/euare-userdelloginprofile
index 5d1a934..9974064 100755
--- a/bin/euare-userdelloginprofile
+++ b/bin/euare-userdelloginprofile
@@ -1,7 +1,6 @@
-#!/usr/bin/python
+#!/usr/bin/python -tt
import euca2ools.commands.euare.deleteloginprofile
if __name__ == '__main__':
- r = euca2ools.commands.euare.deleteloginprofile.DeleteLoginProfile()
- r.main_cli()
+ euca2ools.commands.euare.deleteloginprofile.DeleteLoginProfile().do_cli()
diff --git a/euca2ools/commands/euare/deleteloginprofile.py b/euca2ools/commands/euare/deleteloginprofile.py
index be9877f..143a524 100644
--- a/euca2ools/commands/euare/deleteloginprofile.py
+++ b/euca2ools/commands/euare/deleteloginprofile.py
@@ -1,6 +1,6 @@
# Software License Agreement (BSD License)
#
-# Copyright (c) 2009-2011, Eucalyptus Systems, Inc.
+# Copyright (c) 2009-2012, Eucalyptus Systems, Inc.
# All rights reserved.
#
# Redistribution and use of this software in source and binary forms, with or
@@ -31,39 +31,15 @@
# Author: Neil Soman neil at eucalyptus.com
# Mitch Garnaat mgarnaat at eucalyptus.com
-from boto.roboto.awsqueryrequest import AWSQueryRequest
-from boto.roboto.param import Param
-import euca2ools.commands.euare
-import euca2ools.utils
+from requestbuilder import Arg
+from . import EuareRequest, DELEGATE
+class DeleteLoginProfile(EuareRequest):
+ Description = "Delete a user's login profile"
+ Args = [Arg('-u', '--user-name', dest='UserName', metavar='USER',
+ required=True, help='''name of the user whose login profile
+ should be deleted (required)'''),
+ DELEGATE]
-class DeleteLoginProfile(AWSQueryRequest):
-
- ServiceClass = euca2ools.commands.euare.Euare
-
- Description = """DeleteLoginProfile"""
- Params = [Param(
- name='UserName',
- short_name='u',
- long_name='user-name',
- ptype='string',
- optional=False,
- doc=""" Name of the User whose login profile you want to delete. """,
- ), Param(
- name='DelegateAccount',
- short_name=None,
- long_name='delegate',
- ptype='string',
- optional=True,
- doc=""" [Eucalyptus extension] Process this command as if the administrator of the specified account had run it. This option is only usable by cloud administrators. """,
- )]
-
- def cli_formatter(self, data):
+ def print_result(self, result):
pass
-
- def main(self, **args):
- return self.send(**args)
-
- def main_cli(self):
- euca2ools.utils.print_version_if_necessary()
- self.do_cli()
--
managing cloud instances for Eucalyptus
More information about the pkg-eucalyptus-commits
mailing list