Skip to content

Commit

Permalink
added defaultDeploymentRepo on RepositoryVirtual
Browse files Browse the repository at this point in the history
  • Loading branch information
GODARD Patrice authored and allburov committed Dec 18, 2024
1 parent 9a03761 commit d46abcc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dohq_artifactory/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -872,6 +872,7 @@ def __init__(
self.notes = ""
self.package_type = packageType or package_type
self.repositories = repositories or []
default_deployment_repo_name=None

if packageType:
msg = "packageType is deprecated, use package_type"
Expand All @@ -893,6 +894,7 @@ def _create_json(self):
"packageType": self.package_type,
"repositories": self._repositories,
"notes": self.notes,
"defaultDeploymentRepo": self.default_deployment_repo_name
}

return data_json
Expand All @@ -908,6 +910,7 @@ def _read_response(self, response):
self.package_type = response.get("packageType")
self._repositories = response.get("repositories")
self.docker_api_version = response.get("dockerApiVersion", None)
self.default_deployment_repo_name = response.get("defaultDeploymentRepo")

def add_repository(self, *repos):
for value in repos:
Expand Down

0 comments on commit d46abcc

Please sign in to comment.