Revision 6a2a28bd kamaki/cli/__init__.py
b/kamaki/cli/__init__.py | ||
---|---|---|
473 | 473 |
|
474 | 474 |
def run_shell(exe_string, parser, auth_base, cloud): |
475 | 475 |
from command_shell import _init_shell |
476 |
shell = _init_shell(exe_string, parser) |
|
476 |
try: |
|
477 |
username, userid = ( |
|
478 |
auth_base.user_term('name'), auth_base.user_term('id')) |
|
479 |
except Exception: |
|
480 |
username, userid = '', '' |
|
481 |
shell = _init_shell(exe_string, parser, username, userid) |
|
477 | 482 |
_load_all_commands(shell.cmd_tree, parser.arguments) |
478 | 483 |
shell.run(auth_base, cloud, parser) |
479 | 484 |
|
Also available in: Unified diff