|
@ -427,7 +427,7 @@ _sl_init_vars() { |
|
|
# version API |
|
|
# version API |
|
|
SL_Ver="${SL_Ver:-$(_readaccountconf_mutable SL_Ver)}" |
|
|
SL_Ver="${SL_Ver:-$(_readaccountconf_mutable SL_Ver)}" |
|
|
if [ -z "$SL_Ver" ]; then |
|
|
if [ -z "$SL_Ver" ]; then |
|
|
SL_Ver="v2" |
|
|
|
|
|
|
|
|
SL_Ver="v1" |
|
|
fi |
|
|
fi |
|
|
if ! [ "$SL_Ver" = "v1" ] && ! [ "$SL_Ver" = "v2" ]; then |
|
|
if ! [ "$SL_Ver" = "v1" ] && ! [ "$SL_Ver" = "v2" ]; then |
|
|
_err "You don't specify selectel.ru API version." |
|
|
_err "You don't specify selectel.ru API version." |
|
|