mirror of
https://github.com/ansible/awx.git
synced 2026-01-21 06:28:01 -03:30
properly set InventorySource.status for CLI-based inventory_import
see: https://github.com/ansible/tower/issues/2476
This commit is contained in:
parent
d2eeafd5f5
commit
7adc6c6f73
@ -1062,6 +1062,8 @@ class Command(BaseCommand):
|
||||
self.inventory_update.result_traceback = tb
|
||||
self.inventory_update.status = status
|
||||
self.inventory_update.save(update_fields=['status', 'result_traceback'])
|
||||
self.inventory_source.status = status
|
||||
self.inventory_source.save(update_fields=['status'])
|
||||
|
||||
if exc and isinstance(exc, CommandError):
|
||||
sys.exit(1)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user