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:
parent
7ae7403e47
commit
9262943c56
@ -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
|
||||
|
@ -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()
|
||||
|
@ -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'
|
||||
|
@ -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'
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user