Revision 2d1f5058 kamaki/cli/__init__.py
b/kamaki/cli/__init__.py | ||
---|---|---|
488 | 488 |
|
489 | 489 |
def run_one_cmd(exe_string, parser, cloud): |
490 | 490 |
global _history |
491 |
_history = History(parser.arguments['config'].get( |
|
492 |
'global', 'history_file')) |
|
491 |
try: |
|
492 |
token = parser.arguments['config'].get_cloud(cloud, 'token').split()[0] |
|
493 |
except Exception: |
|
494 |
token = None |
|
495 |
_history = History( |
|
496 |
parser.arguments['config'].get('global', 'history_file'), token=token) |
|
493 | 497 |
_history.add(' '.join([exe_string] + argv[1:])) |
494 | 498 |
from kamaki.cli import one_command |
495 | 499 |
one_command.run(cloud, parser, _help) |
Also available in: Unified diff