mirror of
https://github.com/ansible/awx.git
synced 2026-06-25 16:38:03 -02:30
FIX: Add Organization Parameter to Demo Credential (#16474)
Fix demo credential organization in create_preload_data
This commit is contained in:
@@ -52,7 +52,11 @@ class Command(BaseCommand):
|
|||||||
|
|
||||||
ssh_type = CredentialType.objects.filter(namespace='ssh').first()
|
ssh_type = CredentialType.objects.filter(namespace='ssh').first()
|
||||||
c, _ = Credential.objects.get_or_create(
|
c, _ = Credential.objects.get_or_create(
|
||||||
credential_type=ssh_type, name='Demo Credential', inputs={'username': getattr(superuser, 'username', 'null')}, created_by=superuser
|
credential_type=ssh_type,
|
||||||
|
name='Demo Credential',
|
||||||
|
inputs={'username': getattr(superuser, 'username', 'null')},
|
||||||
|
created_by=superuser,
|
||||||
|
organization=o,
|
||||||
)
|
)
|
||||||
|
|
||||||
if superuser:
|
if superuser:
|
||||||
|
|||||||
Reference in New Issue
Block a user