Skip to content

Commit

Permalink
fix: [AAP-38148] import utils module properly to solve AttributeError…
Browse files Browse the repository at this point in the history
… in get_default_organization (#1172)
  • Loading branch information
hsong-rh authored Jan 7, 2025
1 parent 0f2be72 commit 69b06ef
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 69b06ef

Please sign in to comment.