Cogniac / cogniac-sdk-py

Python SDK for Cogniac Public API
Apache License 2.0
5 stars 6 forks source link

url_prefix is overwritten #92

Open sergii-bond opened 3 years ago

sergii-bond commented 3 years ago

cc = cogniac.CogniacConnection(url_prefix=)

it is then not used, and overwritten by https://github.com/Cogniac/cogniac-sdk-py/blob/ea692495c2534d35374f43eaa1682eba0abe3706/cogniac/cogniac.py#L169

wskish commented 3 years ago

normally we do want any tenant-specified region to direct the sdk to the tenant contracted region. lets discuss the use case you have in mind

sergii-bond commented 3 years ago

for my testing I wanted to redirect it to use staging endpoint. I end up using a workaround: after creating a cc (CogniacConnection), I just set cc.url_prefix to staging.