Просмотр исходного кода

Add validation type for type (#2208)

Limit only to api and ssh the currently 2 supported methods
Jaap Marcus 4 лет назад
Родитель
Сommit
4dd95ac7a9
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      bin/v-add-remote-dns-host

+ 1 - 0
bin/v-add-remote-dns-host

@@ -55,6 +55,7 @@ if [ -z "$password" ]; then
 else
     is_format_valid 'user'
 fi
+is_type_valid "api ssh" "$type"
 is_system_enabled "$DNS_SYSTEM" 'DNS_SYSTEM'
 is_password_valid
 is_dnshost_new