Skip to content
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

[omnibus] use YAML.dump to serialize simple hashes to disk #1896

Merged
merged 1 commit into from
Oct 22, 2020

Commits on Oct 22, 2020

  1. use YAML.dump to serialize a simple hash to a file

    The data for this file resource's content is really a simple Ruby Hash
    built up from node attributes, not a node object itself. Instead of
    relying on the .to_yaml behavior previously patched onto Hash, use
    plain old Ruby YAML.dump with the Hash instead.
    
    Resolves new "NoMethodError: undefined method 'to_yaml' for Hash" error
    when chefspec'ing.
    
    Signed-off-by: Robb Kidd <rkidd@chef.io>
    robbkidd committed Oct 22, 2020
    Configuration menu
    Copy the full SHA
    c9ff8d5 View commit details
    Browse the repository at this point in the history