mirror of
https://github.com/ansible/awx.git
synced 2026-03-01 08:48:46 -03:30
Fix bug in inventory update canceling
This commit is contained in:
@@ -2763,6 +2763,9 @@ class RunInventoryUpdate(BaseTask):
|
|||||||
except PermissionDenied as exc:
|
except PermissionDenied as exc:
|
||||||
logger.exception('License error saving {} content'.format(inventory_update.log_format))
|
logger.exception('License error saving {} content'.format(inventory_update.log_format))
|
||||||
raise PostRunError(str(exc), status='error')
|
raise PostRunError(str(exc), status='error')
|
||||||
|
except PostRunError:
|
||||||
|
logger.exception('Error saving {} content, rolling back changes'.format(inventory_update.log_format))
|
||||||
|
raise
|
||||||
except Exception:
|
except Exception:
|
||||||
logger.exception('Exception saving {} content, rolling back changes.'.format(
|
logger.exception('Exception saving {} content, rolling back changes.'.format(
|
||||||
inventory_update.log_format))
|
inventory_update.log_format))
|
||||||
|
|||||||
Reference in New Issue
Block a user