Added hostname processor to all plugins which require it

This commit is contained in:
Martin Magr
2012-12-17 15:08:13 +01:00
parent 927b4b004a
commit 412b0a655c
7 changed files with 43 additions and 7 deletions

View File

@@ -5,6 +5,7 @@ Installs and configures an openstack client
import logging
import packstack.installer.engine_validators as validate
import packstack.installer.engine_processors as process
from packstack.installer import basedefs
import packstack.installer.common_utils as utils
@@ -30,6 +31,9 @@ def initConfig(controllerObject):
"OPTION_LIST" : [],
"VALIDATION_FUNC" : validate.validatePing,
"DEFAULT_VALUE" : "127.0.0.1",
"PROCESSOR_ARGS" : {"allow_localhost": True},
"PROCESSOR_FUNC" : process.processHost,
"PROCESSOR_MSG" : "WARN_VAL_IS_HOSTNAME",
"MASK_INPUT" : False,
"LOOSE_VALIDATION": True,
"CONF_NAME" : "CONFIG_OSCLIENT_HOST",