Skip to content

Commit

Permalink
Fix AttributeError in get_default_organization
Browse files Browse the repository at this point in the history
  • Loading branch information
hsong-rh committed Jan 3, 2025
1 parent 0f2be72 commit 002d07f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/aap_eda/core/management/commands/create_initial_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
from django.db.models import Q

from aap_eda.core import enums, models
from aap_eda.core.models.utils import get_default_organization
from aap_eda.core.tasking import enable_redis_prefix
from aap_eda.core.utils.credentials import inputs_to_store

Expand Down Expand Up @@ -1072,7 +1073,7 @@ def _copy_registry_credentials(self):
if not credentials:
return

default_organization = models.utils.get_default_organization()
default_organization = get_default_organization()

cred_type = models.CredentialType.objects.filter(
name=enums.DefaultCredentialType.REGISTRY
Expand Down Expand Up @@ -1129,7 +1130,7 @@ def _copy_scm_credentials(self):
if not credentials:
return

default_organization = models.utils.get_default_organization()
default_organization = get_default_organization()

cred_type = models.CredentialType.objects.filter(
name=enums.DefaultCredentialType.SOURCE_CONTROL
Expand Down

0 comments on commit 002d07f

Please sign in to comment.