报错了,日志:
- Traceback (most recent call last):
- File "/www/server/panel/plugin/cf2dns/cf2dns.py", line 168, in <module>
- cloud = HuaWeiApi(config["secretid"], config["secretkey"], config["region_hw"])
- File "/www/server/panel/plugin/cf2dns/dns/huawei.py", line 20, in __init__
- self.client = DnsClient.new_builder().with_credentials(BasicCredentials(self.AK, self.SK)).with_region(DnsRegion.value_of(self.region)).build()
- File "/www/server/panel/pyenv/lib/python3.7/site-packages/huaweicloudsdkcore/client.py", line 151, in build
- self._credentials = self._credentials.process_auth_params(client.get_http_client(), self._region.id)
- File "/www/server/panel/pyenv/lib/python3.7/site-packages/huaweicloudsdkcore/auth/credentials.py", line 247, in process_auth_params
- self.project_id = Iam.keystone_list_projects(http_client, request)
- File "/www/server/panel/pyenv/lib/python3.7/site-packages/huaweicloudsdkcore/auth/internal.py", line 135, in keystone_list_projects
- raise exceptions.ApiValueError("No project id found, "
- huaweicloudsdkcore.exceptions.exceptions.ApiValueError: No project id found, please specify project_id manually when initializing the credentials.
复制代码 |