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:
|
||||
e.add_note(f"While rendering for: {node['hostname']}")
|
||||
raise e
|
||||
# Parse the rendered yaml and convert it to a json patch
|
||||
return json.dumps(yaml.safe_load(rendered))
|
||||
# Parse the rendered yaml
|
||||
return yaml.safe_load(rendered)
|
||||
|
||||
return super().default(o)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user