浏览代码

dns_ovh: save OVH_CK in all cases

Maxime-J 3 年之前
父节点
当前提交
19790e9011
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      dnsapi/dns_ovh.sh

+ 1 - 1
dnsapi/dns_ovh.sh

@@ -118,6 +118,7 @@ _initAuth() {
     #return and wait for retry.
     #return and wait for retry.
     return 1
     return 1
   fi
   fi
+  _saveaccountconf OVH_CK "$OVH_CK"
 
 
   _info "Checking authentication"
   _info "Checking authentication"
 
 
@@ -235,7 +236,6 @@ _ovh_authentication() {
   _secure_debug consumerKey "$consumerKey"
   _secure_debug consumerKey "$consumerKey"
 
 
   OVH_CK="$consumerKey"
   OVH_CK="$consumerKey"
-  _saveaccountconf OVH_CK "$OVH_CK"
 
 
   _info "Please open this link to do authentication: $(__green "$validationUrl")"
   _info "Please open this link to do authentication: $(__green "$validationUrl")"