mirror of
https://github.com/ansible/awx.git
synced 2026-03-23 20:05:03 -02:30
Added comment context to caught exception
This commit is contained in:
@@ -152,6 +152,8 @@ def _discover_credentials(instances, cred, orgfunc):
|
|||||||
try:
|
try:
|
||||||
_update_credential_parents(orgfunc(instances[0]), cred)
|
_update_credential_parents(orgfunc(instances[0]), cred)
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
|
# JobTemplate.inventory can be NULL sometimes, eg when an inventory
|
||||||
|
# has been deleted. This protects against that.
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
for pos, org in enumerate(orgs):
|
for pos, org in enumerate(orgs):
|
||||||
|
|||||||
Reference in New Issue
Block a user