Improve operation args printing when no name provided.
@@ -211,12 +211,16 @@ def _log_operation_start(op_meta):
if op_meta['run_once']:
op_types.append('run once')
+ args = ''
+ if op_meta['args']:
+ args = '({0})'.format(', '.join(arg for arg in op_meta['args']))
+
logger.info('{0} {1} {2}'.format(
click.style('--> Starting{0}operation:'.format(
' {0} '.format(', '.join(op_types)) if op_types else ' ',
), 'blue'),
click.style(', '.join(op_meta['names']), bold=True),
- tuple(op_meta['args']) if op_meta['args'] else '',
+ args,
))
