Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix conoha provider (specify auth_region when get provider option) (A…
Browse files Browse the repository at this point in the history
…nalogJ#949)

* fix conoha provider (specify auth_region when get provider option)

* fix conoha provider (fix testcase)

Co-authored-by: Adrien Ferrand <ferrand.ad@gmail.com>
2 people authored and MasinAD committed Mar 29, 2022
1 parent fe63eb1 commit 4aa9979
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lexicon/providers/conoha.py
Original file line number Diff line number Diff line change
@@ -46,10 +46,10 @@ def __init__(self, config):
self.domain_id = None

self.api_endpoint = "https://dns-service.{0}.conoha.io/v1".format(
self._get_provider_option("region") or "tyo1"
self._get_provider_option("auth_region") or "tyo1"
)
self.auth_api_endpoint = "https://identity.{0}.conoha.io/v2.0".format(
self._get_provider_option("region") or "tyo1"
self._get_provider_option("auth_region") or "tyo1"
)
self.auth_token = None

2 changes: 1 addition & 1 deletion lexicon/tests/providers/test_conoha.py
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@ class ConohaProviderTests(TestCase, IntegrationTestsV2):
domain = "narusejun.com"

def _test_parameters_overrides(self):
return {"region": "tyo1"}
return {"auth_region": "tyo1"}

def _test_fallback_fn(self):
return lambda x: None if x in ("priority") else "placeholder_" + x

0 comments on commit 4aa9979

Please sign in to comment.