Skip to content

Commit

Permalink
πŸ› fix: fix get_token in create_setter_by_str
Browse files Browse the repository at this point in the history
  • Loading branch information
zrr1999 committed Apr 9, 2024
1 parent ed5f686 commit 374f70a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion dns_manager/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,12 @@ def create_setter_by_str(config: dict, dns_setter: str = "dnspod"):
>>> assert isinstance(setter, DNSPodSetter)
"""
token = get_token("dnspod", get_token_config(), create=True)
token = get_token(
"dnspod",
get_token_config(),
create=True,
env_names=["TENCENTCLOUD_SECRET_ID", "TENCENTCLOUD_SECRET_KEY"],
)
match dns_setter:
case "dnspod":
setter = DNSPodSetter(config, token)
Expand Down

0 comments on commit 374f70a

Please sign in to comment.