Commit 9c8fafee authored by Marco Mariani's avatar Marco Mariani Committed by Rafael Monnerat

CLI: avoid empty log message (no envvar removed)

parent 50490d28
...@@ -132,7 +132,8 @@ def getCleanEnvironment(logger, home_path='/tmp'): ...@@ -132,7 +132,8 @@ def getCleanEnvironment(logger, home_path='/tmp'):
changed_env['HOME'] = env['HOME'] = home_path changed_env['HOME'] = env['HOME'] = home_path
for k in sorted(changed_env.iterkeys()): for k in sorted(changed_env.iterkeys()):
logger.debug('Overridden %s = %r' % (k, changed_env[k])) logger.debug('Overridden %s = %r' % (k, changed_env[k]))
logger.debug('Removed from environment: %s' % ', '.join(sorted(removed_env))) if removed_env:
logger.debug('Removed from environment: %s' % ', '.join(sorted(removed_env)))
return env return env
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment