Skip to content

Commit

Permalink
Merge pull request #1 from C0D1UM/fix-invalid-import
Browse files Browse the repository at this point in the history
Fix invalid import
  • Loading branch information
earthpyy authored Dec 9, 2022
2 parents 4f695f1 + 4edd03e commit 5eba3f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion csms/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from huaweicloudsdkcore.auth.credentials import BasicCredentials
from huaweicloudsdkcore.auth.provider import EnvCredentialProvider
from huaweicloudsdkcsms import v1 as csms
from huaweicloudsdkcsms.v1.region.csms_region import CsmsRegion


class CsmsService:
Expand All @@ -20,7 +21,7 @@ def __init__(self, access_key: str = None, secret_key: str = None, project_id: s

self.client = csms.CsmsClient.new_builder().with_credentials(self._credentials)
if region:
self.client = self.client.with_region(csms.region.csms.CsmsRegion.value_of(region))
self.client = self.client.with_region(CsmsRegion.value_of(region))

self.client = self.client.build()

Expand Down

0 comments on commit 5eba3f5

Please sign in to comment.