Skip to content

Commit

Permalink
fixed bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrei Neagu committed Jan 15, 2025
1 parent f3a9f75 commit 9e13cc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/docker_publisher_osparc_services/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ class RepoModel(BaseModel):
@model_validator(mode="before")
@classmethod
def require_access_token(cls, values):
if values["host_type"] == HostType.GITLAB and values("gitlab", None) is None:
if values["host_type"] == HostType.GITLAB and values.get("gitlab", None) is None:
raise ValueError(
f"Provide a valid 'gitlab' field for {HostType.GITLAB} repo"
)
Expand Down

0 comments on commit 9e13cc3

Please sign in to comment.