Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added defaultDeploymentRepo on RepositoryVirtual #461

Merged
merged 3 commits into from
Dec 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 []
self.default_deployment_repo_name = default_deployment_repo_name

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
Loading