|
@ -92,7 +92,7 @@ _initAuth() { |
|
|
|
|
|
|
|
|
if [ "$OVH_AK" != "$(_readaccountconf OVH_AK)" ]; then |
|
|
if [ "$OVH_AK" != "$(_readaccountconf OVH_AK)" ]; then |
|
|
_info "It seems that your ovh key is changed, let's clear consumer key first." |
|
|
_info "It seems that your ovh key is changed, let's clear consumer key first." |
|
|
_clearaccountconf OVH_CK |
|
|
|
|
|
|
|
|
_clearaccountconf_mutable OVH_CK |
|
|
fi |
|
|
fi |
|
|
_saveaccountconf_mutable OVH_AK "$OVH_AK" |
|
|
_saveaccountconf_mutable OVH_AK "$OVH_AK" |
|
|
_saveaccountconf_mutable OVH_AS "$OVH_AS" |
|
|
_saveaccountconf_mutable OVH_AS "$OVH_AS" |
|
@ -125,7 +125,7 @@ _initAuth() { |
|
|
if ! _ovh_rest GET "domain" || _contains "$response" "INVALID_CREDENTIAL" || _contains "$response" "NOT_CREDENTIAL"; then |
|
|
if ! _ovh_rest GET "domain" || _contains "$response" "INVALID_CREDENTIAL" || _contains "$response" "NOT_CREDENTIAL"; then |
|
|
_err "The consumer key is invalid: $OVH_CK" |
|
|
_err "The consumer key is invalid: $OVH_CK" |
|
|
_err "Please retry to create a new one." |
|
|
_err "Please retry to create a new one." |
|
|
_clearaccountconf OVH_CK |
|
|
|
|
|
|
|
|
_clearaccountconf_mutable OVH_CK |
|
|
return 1 |
|
|
return 1 |
|
|
fi |
|
|
fi |
|
|
_info "Consumer key is ok." |
|
|
_info "Consumer key is ok." |
|
|