From e03899b581f0e39b967e551f3b2d6e9905d53ebc Mon Sep 17 00:00:00 2001 From: Hamzah Yousuf <143158278+hamzahyous@users.noreply.github.com> Date: Wed, 3 Jun 2026 14:32:16 -0400 Subject: [PATCH] FIX: Add Organization Parameter to Demo Credential (#16474) Fix demo credential organization in create_preload_data --- awx/main/management/commands/create_preload_data.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/awx/main/management/commands/create_preload_data.py b/awx/main/management/commands/create_preload_data.py index 68ed944cad..61366ca10c 100644 --- a/awx/main/management/commands/create_preload_data.py +++ b/awx/main/management/commands/create_preload_data.py @@ -52,7 +52,11 @@ class Command(BaseCommand): ssh_type = CredentialType.objects.filter(namespace='ssh').first() 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: