ensure organization is empty when generating a new credential

This commit is contained in:
Wayne Witzel III
2016-06-21 13:07:58 -04:00
parent bc457ccef6
commit 4799b27108

View File

@@ -162,9 +162,10 @@ def _discover_credentials(instances, cred, orgfunc):
else:
# Create a new credential
cred.pk = None
cred.organization = None
cred.save()
cred.owner_role, cred.use_role, cred.organization = None, None, None
cred.owner_role, cred.use_role = None, None
for i in orgs[org]:
i.credential = cred