Commit Graph

24 Commits

Author SHA1 Message Date
Easton Man
ae3e5dbf2c
fix: fix DomainName not retreived properly
Co-Authored-By: idawnlight <idawn@live.com>
2023-03-12 12:41:29 +08:00
Easton Man
1f777a94a7
fix: change some debug comments 2023-03-07 17:50:44 +08:00
Easton Man
7560c64f46 fix: fix typo 2023-03-07 11:30:32 +08:00
Easton Man
bddde60522 fix: use update instead of remove then add 2023-03-07 11:27:08 +08:00
Easton Man
e9366f8c76 fix: fix huaweicloud existing record 400 2023-03-07 10:56:10 +08:00
Easton Man
4dba84d09e
fix: fix shfmt 2023-03-07 10:01:20 +08:00
Easton Man
0cce2d6098
fix: fix shellcheck 2023-03-07 09:57:39 +08:00
Easton Man
acbd8bce21
feat: add retry count for removing record set
This avoids infinite loop when something went wrong and throws a error
2023-03-07 09:48:13 +08:00
nil
a46e51e8db Update format code. 2022-07-02 01:22:46 +00:00
nil
789ebb8990 Fix dns_huaweicloud provider
1. Fix huaweicloud api use iam account get token fail.
2. Default use ap-southeast-1 project name, don't need query project id.
2022-07-01 09:12:06 +00:00
Yuan Ming
9088c8741a
Fix dns_huaweicloud subshell return
Replace pipe read with line count loop, fix useless return in subshell.
2022-01-20 14:01:33 +08:00
Yuan Ming
9d2ee2127d
dns_huaweicloud debug info adjust
_secure_debug for sensitive token.
2022-01-15 19:23:30 +08:00
Yuan Ming
e49ece8793
dns_huaweicloud.sh minor bug fixes
1. Match zone name in response in case multiple items return.
2. Use string '"id"' (single quotation marks added) to check if zone/record exist in _get_zoneid() & _get_recordset_id(). Fix domain can't contain string "id".

(Sensitive _debug Access Token Commented out, For CICD Run)
2022-01-14 22:10:26 +08:00
Easton Man
86639dbc02
feat: add huaweicloud error handling 2021-02-15 15:18:49 +08:00
Easton Man
fd511966a7 fix: revert adding tr to replace sed 2020-11-24 12:58:16 +08:00
Easton Man
c4ddddd434 refactor: remove dirty debug code
- add tr to replace sed for robusty
- add comments
2020-11-24 10:05:34 +08:00
Easton Man
83a4db3b31 fix: remove sed before grep, but lead to less robusty 2020-11-23 23:46:06 +08:00
Easton Man
e35ef75949 fix: fix solaris sed and grep issue 2020-11-23 22:18:57 +08:00
Easton Man
5d0657c49a fix: fix adding record before removing 2020-11-23 14:57:33 +08:00
Easton Man
f6f6550bfb feat: add very tricky method to adapt to non-intuitive huaweicloud api 2020-11-23 14:25:48 +08:00
Easton Man
e01fb50359 feat: add env var check 2020-11-23 00:32:50 +08:00
Easton Man
28ce1c1249 fix: fix wrong debug output 2020-11-23 00:20:57 +08:00
Easton Man
7db592d27a fix: fix failing ci test 2020-11-23 00:20:57 +08:00
Easton Man
b8e5c0d898 feat: Add huaweicloud intl dnsapi 2020-11-23 00:20:57 +08:00