Revision 50a32c37 kamaki/cli/__init__.py
b/kamaki/cli/__init__.py | ||
---|---|---|
557 | 557 |
cloud = _init_session(parser.arguments, is_non_API(parser)) |
558 | 558 |
if parser.unparsed: |
559 | 559 |
global _history |
560 |
cnf = parser.arguments['config'] |
|
560 | 561 |
try: |
561 |
token = parser.arguments['config'].get_cloud( |
|
562 |
cloud, 'token').split()[0] |
|
562 |
token = cnf.get_cloud(cloud, 'token').split()[0] |
|
563 | 563 |
except Exception: |
564 | 564 |
token = None |
565 |
_history = History( |
|
566 |
parser.arguments['config'].get('global', 'history_file'), |
|
567 |
token=token) |
|
565 |
_history = History(cnf.get('global', 'history_file'), token=token) |
|
566 |
_history.limit = cnf.get('global', 'history_limit') |
|
568 | 567 |
_history.add(' '.join([exe] + argv[1:])) |
569 | 568 |
from kamaki.cli import one_command |
570 | 569 |
one_command.run(cloud, parser, _help) |
Also available in: Unified diff