devopshq / artifactory

dohq-artifactory: a Python client for Artifactory
https://devopshq.github.io/artifactory/
MIT License
273 stars 144 forks source link

Getting Repository parameters such as HandleReleases, HandleSnapshots #410

Closed snssays closed 1 year ago

snssays commented 1 year ago

When making a get call using find_repository_local, how do we access values such as handleReleases and handleSnapshots?

snssays commented 1 year ago

While sending, we were able to send it via repo.additional_params. But we are not able to access it once the repository is created and we get back the RepositoryLocal instance.

donhui commented 1 year ago

You can obtain the data you want through the following methods:

repo = artifactory_.find_repository_local("maven-local")
print(repo.raw['handleReleases'])
print(repo.raw['handleSnapshots'])
snssays commented 1 year ago

We were able to find it. Thanks for letting us know. That worked!