Revision 534e7bbb kamaki/cli/__init__.py
b/kamaki/cli/__init__.py | ||
---|---|---|
244 | 244 |
_check_config_version(_cnf.value) |
245 | 245 |
|
246 | 246 |
global _colors |
247 |
_colors = _cnf.value.get_global('colors')
|
|
247 |
_colors = _cnf.value.get('global', 'colors')
|
|
248 | 248 |
if not (stdout.isatty() and _colors == 'on'): |
249 | 249 |
from kamaki.cli.utils import remove_colors |
250 | 250 |
remove_colors() |
... | ... | |
473 | 473 |
|
474 | 474 |
def run_one_cmd(exe_string, parser, cloud): |
475 | 475 |
global _history |
476 |
_history = History(parser.arguments['config'].get_global('history_file'))
|
|
476 |
_history = History(parser.arguments['config'].get('global', 'history_file'))
|
|
477 | 477 |
_history.add(' '.join([exe_string] + argv[1:])) |
478 | 478 |
from kamaki.cli import one_command |
479 | 479 |
one_command.run(cloud, parser, _help) |
... | ... | |
515 | 515 |
exit(0) |
516 | 516 |
|
517 | 517 |
_cnf = parser.arguments['config'] |
518 |
log_file = _cnf.get_global('log_file')
|
|
518 |
log_file = _cnf.get('global', 'log_file')
|
|
519 | 519 |
if log_file: |
520 | 520 |
logger.set_log_filename(log_file) |
521 | 521 |
global filelog |
Also available in: Unified diff