mirror of
https://github.com/ansible/awx.git
synced 2026-03-13 15:09:32 -02:30
ensure organization is empty when generating a new credential
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user