Skip to content

Commit

Permalink
move it to metadata section
Browse files Browse the repository at this point in the history
  • Loading branch information
aquamatthias committed Oct 17, 2024
1 parent 54c2d18 commit 8cc3372
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fixlib/fixlib/core/model_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,13 +351,13 @@ def node_to_dict(node: BaseResource, changes_only: bool = False, include_revisio
metadata["protected"] = True
if link := node._provider_link:
metadata["provider_link"] = link
if assessments := node._assessments:
metadata["assessments"] = to_json(assessments)

node_dict["reported"] = get_node_attributes(node)
node_dict["metadata"] = metadata
if usage := node._resource_usage:
node_dict["usage"] = usage
if assessments := node._assessments:
node_dict["assessments"] = to_json(assessments)
if node.clean:
node_dict.update({"desired": {"clean": node.clean}})
if include_revision and node._fixcore_revision:
Expand Down

0 comments on commit 8cc3372

Please sign in to comment.