mirror of
https://github.com/ansible/awx.git
synced 2026-03-23 11:55:04 -02:30
Another orgfunc migration fix
This commit is contained in:
@@ -150,7 +150,10 @@ def _discover_credentials(instances, cred, orgfunc):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
if len(orgs) == 1:
|
if len(orgs) == 1:
|
||||||
_update_credential_parents(orgfunc(instances[0]), cred)
|
try:
|
||||||
|
_update_credential_parents(orgfunc(instances[0]), cred)
|
||||||
|
except AttributeError:
|
||||||
|
pass
|
||||||
else:
|
else:
|
||||||
for pos, org in enumerate(orgs):
|
for pos, org in enumerate(orgs):
|
||||||
if pos == 0:
|
if pos == 0:
|
||||||
|
|||||||
Reference in New Issue
Block a user