mirror of
https://github.com/ansible/awx.git
synced 2026-01-17 04:31:21 -03:30
Fixed missing orgfunc usage to resolve organization during credential migration
This commit is contained in:
parent
59b6ed3b9c
commit
86e29221d5
@ -135,7 +135,7 @@ def _discover_credentials(instances, cred, orgfunc):
|
||||
orgs[orgfunc(inst)].append(inst)
|
||||
|
||||
if len(orgs) == 1:
|
||||
_update_credential_parents(instances[0].inventory.organization, cred)
|
||||
_update_credential_parents(orgfunc(instances[0]), cred)
|
||||
else:
|
||||
for pos, org in enumerate(orgs):
|
||||
if pos == 0:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user