Skip to content
Snippets Groups Projects
Commit f66efb4c authored by Seblu's avatar Seblu
Browse files

addaccount must take a role argument

parent 095e81d9
No related branches found
No related tags found
No related merge requests found
......@@ -314,13 +314,13 @@ class Command(object):
def cmd_addaccount(self, argv):
'''Create an account'''
if len(argv) != 2:
if len(argv) != 3:
raise cmdBadArgument()
try:
self.cli.rpc.addaccount(argv[1])
self.cli.rpc.addaccount(argv[1], argv[2])
except RpcError as e:
raise cmdError("RPCError: %s"%str(e))
cmd_addaccount.usage = "addaccount <name>"
cmd_addaccount.usage = "addaccount <name> <role>"
def cmd_delaccount(self, argv):
'''Delete an account'''
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment