Add a filter processing for the parameter of restore
Now the protection service only check the keys 'username' and 'password' in the parameter of restore. It should check more keys. Change-Id: I902e26456ab2c166cd927fed786f0c833c138ff0
This commit is contained in:
parent
3771bdd1a9
commit
b0dc050b2e
@ -60,7 +60,9 @@ class BaseProtectionPlugin(ProtectionPlugin):
|
||||
requires = parameters.keys()
|
||||
requires.append('checkpoint')
|
||||
elif operation == constants.OPERATION_RESTORE:
|
||||
parameters.update(context.parameters)
|
||||
parameters.update(context.parameters.get(resource.type, {}))
|
||||
res_params = resource.type + '#' + str(resource.id)
|
||||
parameters.update(context.parameters.get(res_params, {}))
|
||||
parameters['checkpoint'] = context.checkpoint
|
||||
parameters['heat_template'] = context.heat_template
|
||||
inject = parameters
|
||||
|
Loading…
Reference in New Issue
Block a user