mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 17:37:37 -02:30
Fixed missing orgfunc usage to resolve organization during credential migration
This commit is contained in:
@@ -135,7 +135,7 @@ def _discover_credentials(instances, cred, orgfunc):
|
|||||||
orgs[orgfunc(inst)].append(inst)
|
orgs[orgfunc(inst)].append(inst)
|
||||||
|
|
||||||
if len(orgs) == 1:
|
if len(orgs) == 1:
|
||||||
_update_credential_parents(instances[0].inventory.organization, cred)
|
_update_credential_parents(orgfunc(instances[0]), cred)
|
||||||
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