Remove unused return value from take_action

This commit removes return values from take_action(). Because they are
unused in cliff[1] and to prevent developers misunderstanding.

[1]
http://git.openstack.org/cgit/openstack/cliff/tree/cliff/command.py#n55

Change-Id: I1a81e163acae17005f49decb8cb7ffee52944d26
This commit is contained in:
Masayuki Igawa 2016-06-09 12:28:09 +09:00
parent 7ae7403e47
commit 9262943c56
5 changed files with 2 additions and 7 deletions

View File

@ -277,12 +277,11 @@ class TempestAccountGenerator(command.Command):
def take_action(self, parsed_args):
try:
return main(parsed_args)
main(parsed_args)
except Exception:
LOG.exception("Failure generating test accounts.")
traceback.print_exc()
raise
return 0
def get_description(self):
return DESCRIPTION

View File

@ -83,7 +83,6 @@ class TempestCleanup(command.Command):
LOG.exception("Failure during cleanup")
traceback.print_exc()
raise
return 0
def init(self, parsed_args):
cleanup_service.init_conf()

View File

@ -30,7 +30,6 @@ LOG = logging.getLogger(__name__)
class TempestListPlugins(command.Command):
def take_action(self, parsed_args):
self._list_plugins()
return 0
def get_description(self):
return 'List all tempest plugins'

View File

@ -97,7 +97,6 @@ class TempestRunStress(command.Command):
LOG.exception("Failure in the stress test framework")
traceback.print_exc()
raise
return 0
def get_description(self):
return 'Run tempest stress tests'

View File

@ -418,12 +418,11 @@ class TempestVerifyConfig(command.Command):
def take_action(self, parsed_args):
try:
return main(parsed_args)
main(parsed_args)
except Exception:
LOG.exception("Failure verifying configuration.")
traceback.print_exc()
raise
return 0
if __name__ == "__main__":
main()