Skip to content
This repository was archived by the owner on May 9, 2020. It is now read-only.
This repository was archived by the owner on May 9, 2020. It is now read-only.

NodeAttributes.to_dict() only does a shallow merge #64

@daniel-jacob-pearson

Description

@daniel-jacob-pearson

If a chef node has an attribute set on multiple levels to dictionary values, then the dictionary produced by NodeAttributes.to_dict() only contains the items in the dictionary set at the level with higher precedence, omitting the items that only exist in the dictionary set at the level with lower precedence. For example, if "postgresql" is set on the default level to {"version": "9.5"} and on the normal level to {"enable_pgdg_apt": true}, then the "postgresql" key in the output of to_dict() would have the value of {"enable_pgdg_apt": True} instead of {"enable_pgdg_apt": True, "version": "9.5"}.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions