Fail when Nova API, Nova network and Swift hosts are not set as IP addresses
- Refactor value validator system - cleanup, pep8, documentation, tests and allow multiple validators for each parameter Fixes: rhbz#886603 Change-Id: I1bb3486ed7168bda2855ee877e32423033620ecc
This commit is contained in:
@@ -30,11 +30,8 @@ def initConfig(controllerObject):
|
||||
"USAGE" : "The IP address of the server on which to install Glance",
|
||||
"PROMPT" : "Enter the IP address of the Glance server",
|
||||
"OPTION_LIST" : [],
|
||||
"VALIDATION_FUNC" : validate.validateSSH,
|
||||
"VALIDATORS" : [validate.validate_ssh],
|
||||
"DEFAULT_VALUE" : utils.getLocalhostIP(),
|
||||
"PROCESSOR_ARGS" : {"allow_localhost": True},
|
||||
"PROCESSOR_FUNC" : process.processHost,
|
||||
"PROCESSOR_MSG" : "WARN_VAL_IS_HOSTNAME",
|
||||
"MASK_INPUT" : False,
|
||||
"LOOSE_VALIDATION": True,
|
||||
"CONF_NAME" : "CONFIG_GLANCE_HOST",
|
||||
@@ -45,7 +42,7 @@ def initConfig(controllerObject):
|
||||
"USAGE" : "The password to use for the Glance to access DB",
|
||||
"PROMPT" : "Enter the password for the Glance DB access",
|
||||
"OPTION_LIST" : [],
|
||||
"VALIDATION_FUNC" : validate.validateStringNotEmpty,
|
||||
"VALIDATORS" : [validate.validate_not_empty],
|
||||
"DEFAULT_VALUE" : uuid.uuid4().hex[:16],
|
||||
"MASK_INPUT" : True,
|
||||
"LOOSE_VALIDATION": False,
|
||||
@@ -57,7 +54,7 @@ def initConfig(controllerObject):
|
||||
"USAGE" : "The password to use for the Glance to authenticate with Keystone",
|
||||
"PROMPT" : "Enter the password for the Glance Keystone access",
|
||||
"OPTION_LIST" : [],
|
||||
"VALIDATION_FUNC" : validate.validateStringNotEmpty,
|
||||
"VALIDATORS" : [validate.validate_not_empty],
|
||||
"DEFAULT_VALUE" : uuid.uuid4().hex[:16],
|
||||
"MASK_INPUT" : True,
|
||||
"LOOSE_VALIDATION": False,
|
||||
|
Reference in New Issue
Block a user