Switch for Keystone DB cron job
Adds parameter to enable switching off token flush cron job.
Partial-bug: rhbz#1249106
Depends-On: I5e51562338f68b4ba1b2e942907e6f6a0ab7a61e
Change-Id: If358a096e9880b7564b59072829c52b3a63f82c9
(cherry picked from commit 1165218e8c)
This commit is contained in:
@@ -295,12 +295,13 @@ def process_param_value(param, value):
|
||||
_value = value
|
||||
proclist = param.PROCESSORS or []
|
||||
for proc_func in proclist:
|
||||
is_silent = getattr(proc_func, 'silent', False)
|
||||
logging.debug("Processing value of parameter "
|
||||
"%s." % param.CONF_NAME)
|
||||
try:
|
||||
new_value = proc_func(_value, param.CONF_NAME, controller.CONF)
|
||||
if new_value != _value:
|
||||
if param.MASK_INPUT is False:
|
||||
if param.MASK_INPUT is False and not is_silent:
|
||||
msg = output_messages.INFO_CHANGED_VALUE
|
||||
print(msg % (_value, new_value))
|
||||
_value = new_value
|
||||
|
||||
Reference in New Issue
Block a user