Merge "Copy environment before decrypting"
This commit is contained in:
commit
ec97870ad4
|
@ -17,6 +17,8 @@
|
|||
RawTemplate object
|
||||
"""
|
||||
|
||||
import copy
|
||||
|
||||
from oslo_config import cfg
|
||||
from oslo_utils import encodeutils
|
||||
from oslo_versionedobjects import base
|
||||
|
@ -46,6 +48,7 @@ class RawTemplate(
|
|||
for field in tpl.fields:
|
||||
tpl[field] = db_tpl[field]
|
||||
|
||||
tpl.environment = copy.deepcopy(tpl.environment)
|
||||
# If any of the parameters were encrypted, then decrypt them
|
||||
if env_fmt.ENCRYPTED_PARAM_NAMES in tpl.environment:
|
||||
parameters = tpl.environment[env_fmt.PARAMETERS]
|
||||
|
|
Loading…
Reference in New Issue