Commit 5e97ec0f authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

cli.command: command return result of the command

Else it always return 0: http://git.openstack.org/cgit/openstack/cliff/tree/cliff/command.py?id=1.4#n39
parent abf4a990
......@@ -19,6 +19,9 @@ class Command(command.Command):
return parser
def run(self, parsed_args):
return self.take_action(parsed_args)
def check_root_user(config_command_instance):
if sys.platform != 'cygwin' and os.getuid() != 0:
config_command_instance.app.log.error('This slapos command must be run as root.')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment