From c81b89a58980e0fd5c13aca178c4178283ecebb4 Mon Sep 17 00:00:00 2001 From: Igor Gajsin Date: Mon, 19 Sep 2016 15:28:26 +0300 Subject: [PATCH] Add restrictions for few UI settings Change-Id: Iecf8fd6bfa0ec2c97c0bf7d1adeefc226456c201 --- environment_config.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/environment_config.yaml b/environment_config.yaml index 071960e..d462bd0 100644 --- a/environment_config.yaml +++ b/environment_config.yaml @@ -20,6 +20,9 @@ attributes: restrictions: - condition: "settings:fuel-plugin-manila.use-generic-driver.value != true" action: hide + regex: + source: &non_empty_image_name '\S' + error: "Empty image name" use-netapp-driver: type: 'checkbox' @@ -47,6 +50,9 @@ attributes: restrictions: - condition: "settings:fuel-plugin-manila.use-netapp-driver.value != true" action: hide + regex: + source: &non_empty_netapp_host '\S' + error: "Empty hostname of NetApp server" netapp-port: type: 'text' @@ -66,6 +72,10 @@ attributes: restrictions: - condition: "settings:fuel-plugin-manila.use-netapp-driver.value != true" action: hide + regex: + source: &non_empty_netapp_user '\S' + error: "Empty username" + netapp-pass: type: 'text' weight: 35 @@ -75,6 +85,9 @@ attributes: restrictions: - condition: "settings:fuel-plugin-manila.use-netapp-driver.value != true" action: hide + regex: + source: &non_empty_netapp_pass '\S' + error: "Empty password" netapp-root_volume_aggregate: type: 'text'