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

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

Open
daniel-jacob-pearson opened this issue Dec 14, 2016 · 0 comments · May be fixed by #75
Open

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

daniel-jacob-pearson opened this issue Dec 14, 2016 · 0 comments · May be fixed by #75

Comments

@daniel-jacob-pearson
Copy link

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"}.

@ryanohnemus ryanohnemus linked a pull request Sep 4, 2017 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant