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

Config LWRP fails with bad file create #66

Open
ongmingyang opened this issue Aug 4, 2015 · 0 comments
Open

Config LWRP fails with bad file create #66

ongmingyang opened this issue Aug 4, 2015 · 0 comments

Comments

@ongmingyang
Copy link

Chef calls the load_current_resource method in the config provider to determine the current state of the node. This method throws an exception if the resource is malformed (see: https://github.com/chrisroberts/elecksee/blob/master/lib/elecksee/lxc_file_config.rb#L129). In other words, the code exits before chef is able to repair the malformed resource to the correct state. Then a single misconfiguration or a bad file create would mean any recipe using this LWRP might never work again. This could be potentially problematic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant