Allow storage_tool_configs to be changed under STAGED

Change-Id: I78f714ff71fd2032bd35c339a83f1a308bda4d42
This commit is contained in:
Yichen Wang 2016-07-06 13:37:02 -07:00
parent 81a9e673bb
commit 577056a677

View File

@ -199,10 +199,12 @@ class ConfigController(object):
response.text = u"Invalid JSON: \n%s" % (e.message)
return response.text
# http_tool_configs for client VMs is allowed to changed under "STAGED" status
# http_tool_configs and storage_tool_config for client VMs is allowed to be
# changed under "STAGED" status
if ('kb_cfg' in user_config and len(user_config['kb_cfg']) == 1) and \
('client' in user_config['kb_cfg'] and len(user_config['kb_cfg']['client']) == 1) and \
('http_tool_configs' in user_config['kb_cfg']['client']):
('http_tool_configs' in user_config['kb_cfg']['client'] or
'storage_tool_configs' in user_config['kb_cfg']['client']):
allowed_status.append('STAGED')
if status in allowed_status: