-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change when writing back node run list information in Chef 12 local mode #2596
Comments
I'm not following how you think those lines are the responsible ones? It doesn't look like any behavior has changed there unless there's just some subtle typo I'm missing or something. |
@lamont-granquist Quick response version: Notice the |
@jkeiser already found it and has a patch coming I think. Should have used Chef::JSONCompat#parse which is equivalent to |
@lamont-granquist Thanks! So run lists are supposed to be written back? |
Yeah, should be fixed soon. |
Hi, I wrote spec for this break. https://github.com/opscode/chef/pull/2482/files |
With Chef 11, my node JSON looked like this
and it would be written out as such (after whitelisting) at the end of a Chef 11 run. With Chef 12, the run list information is missing, and it has to do with 3f415b1, in particular these lines. The change is returning a
Chef::Node
object instead of a JSONHash
, and that is causing this logic to not includerun_list
as one of the properties to be written back. I don't think this is intentional for local mode operation, since that means thenode/my_node.json
file will always be dirtied at the end of each run if it declares arun_list
.The text was updated successfully, but these errors were encountered: