diff --git a/salt/minion.py b/salt/minion.py index c47d525bd2..2ff4ca23fc 100644 --- a/salt/minion.py +++ b/salt/minion.py @@ -447,11 +447,15 @@ class Minion(object): ) except TypeError as exc: aspec = _getargs(minion_instance.functions[data['fun']]) - msg = 'Missing arguments executing "{0}": {1}' - log.warning(msg.format(function_name, aspec)) - dmsg = '"Missing args" caused by exc: {0}'.format(exc) - log.debug(dmsg, exc_info=True) - ret['return'] = msg.format(function_name, aspec) + msg = 'Missing arguments executing "{0}": {1}'.format( + function_name, aspec + ) + log.warning(msg) + log.debug( + '"Missing args" caused by exc: {0}'.format(exc), + exc_info=True + ) + ret['return'] = msg except Exception: trb = traceback.format_exc() msg = 'The minion function caused an exception: {0}'