Store patches as objects instead of strings
This commit is contained in:
@@ -43,8 +43,8 @@ def node_encoder(node: dict):
|
|||||||
except Exception as e:
|
except Exception as e:
|
||||||
e.add_note(f"While rendering for: {node['hostname']}")
|
e.add_note(f"While rendering for: {node['hostname']}")
|
||||||
raise e
|
raise e
|
||||||
# Parse the rendered yaml and convert it to a json patch
|
# Parse the rendered yaml
|
||||||
return json.dumps(yaml.safe_load(rendered))
|
return yaml.safe_load(rendered)
|
||||||
|
|
||||||
return super().default(o)
|
return super().default(o)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user