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: