mirror of
https://github.com/ansible/awx.git
synced 2024-11-02 09:51:09 +03:00
Another orgfunc migration fix
This commit is contained in:
parent
1faf3cceb8
commit
be8a1f4859
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user