mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Apply fix from #21489 to the 2014.7 branch
This code has been refactored in develop, so the original pull request wasn't backporting cleanly. This applies the same fix to the older branch(es).
This commit is contained in:
parent
d8f4160170
commit
ee159ff3df
@ -121,7 +121,9 @@ def decrypt_object(o, gpg):
|
|||||||
o[k] = decrypt_object(v, gpg)
|
o[k] = decrypt_object(v, gpg)
|
||||||
return o
|
return o
|
||||||
elif isinstance(o, list):
|
elif isinstance(o, list):
|
||||||
return [decrypt_object(e, gpg) for e in o]
|
for number, value in enumerate(o):
|
||||||
|
o[number] = decrypt_object(value, gpg)
|
||||||
|
return o
|
||||||
else:
|
else:
|
||||||
return o
|
return o
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user