This tool gets called to update configuration files for other Arvados
services, so we're not expecting it to deal with any Python objects.
Arvados-DCO-1.1-Signed-off-by: Brett Smith <brett.smith@curii.com>
try:
with open(fn+".override") as f:
try:
with open(fn+".override") as f:
except IOError:
exit()
with open(fn) as f:
except IOError:
exit()
with open(fn) as f:
def recursiveMerge(a, b):
if isinstance(a, dict) and isinstance(b, dict):
def recursiveMerge(a, b):
if isinstance(a, dict) and isinstance(b, dict):
return b
with open(fn, "w") as f:
return b
with open(fn, "w") as f:
- yaml.dump(recursiveMerge(a, b), f)
+ yaml.safe_dump(recursiveMerge(a, b), f)