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

Override configuration (fixed, but without docs) #18

Open
BarAluf opened this issue Mar 11, 2019 · 2 comments
Open

Override configuration (fixed, but without docs) #18

BarAluf opened this issue Mar 11, 2019 · 2 comments
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@BarAluf
Copy link

BarAluf commented Mar 11, 2019

Hi,
i have an ssl error which i can solve by insert my own certificate to your API client,
but i don't find a way to override your configuration file.
Conf file
field name = self.ssl_ca_cert = None
thanks,
Bar Aluf

@allburov
Copy link
Member

allburov commented Mar 20, 2019

@BarAluf yep, do not exist correct way pass some parameters to configuration right now, unfortunately.
I fixed this in develop-branch.

Could you try this give me feedback? I will add docs and merge to master this If it's solve you problem

Install package from git

pip install git+https://github.com/devopshq/teamcity#develop
conf = Configuration()
conf.ssl_ca_cert = '/path/to/file.crt'
# OR quick hack for testing
# conf.verify_ssl = False
tc = dohq_teamcity.TeamCity("http://teamcity.example.com", (sys.argv[1], sys.argv[2]), configuration=conf)
print(tc.server.get_server_info())

@allburov
Copy link
Member

allburov commented Apr 3, 2019

Solution available in version 1.0.2 in pypi. But I forgot to write an example in the documentation. I will do as I find free time

@allburov allburov changed the title Override configuration Override configuration (fixed, but without docs) May 14, 2019
@allburov allburov added help wanted Extra attention is needed good first issue Good for newcomers labels Jan 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Development

No branches or pull requests

2 participants