1
0
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:
Akita Noek 2016-05-03 20:48:06 -04:00
parent 1faf3cceb8
commit be8a1f4859

View File

@ -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: