Fixed missing orgfunc usage to resolve organization during credential migration

This commit is contained in:
Akita Noek
2016-04-12 11:40:17 -04:00
parent 59b6ed3b9c
commit 86e29221d5
+1 -1
View File
@@ -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: