From 86e29221d5c3ec97fb33617a6836b0e9083efc59 Mon Sep 17 00:00:00 2001 From: Akita Noek Date: Sun, 10 Apr 2016 12:05:23 -0400 Subject: [PATCH] Fixed missing `orgfunc` usage to resolve organization during credential migration --- awx/main/migrations/_rbac.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/main/migrations/_rbac.py b/awx/main/migrations/_rbac.py index 327542502c..3b411094f4 100644 --- a/awx/main/migrations/_rbac.py +++ b/awx/main/migrations/_rbac.py @@ -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: