AC-575 Updated logging/output for inventory_import command.

This commit is contained in:
Chris Church
2013-10-24 02:09:49 -04:00
parent 27ad680f4d
commit 710d55d82d
3 changed files with 345 additions and 265 deletions

View File

@@ -805,7 +805,8 @@ class RunInventoryUpdate(BaseTask):
args.append(rax_path)
elif inventory_source.source == 'file':
args.append(inventory_source.source_path)
args.append('-v2')
verbosity = getattr(settings, 'INVENTORY_UPDATE_VERBOSITY', 1)
args.append('-v%d' % verbosity)
if settings.DEBUG:
args.append('--traceback')
return args