-
Notifications
You must be signed in to change notification settings - Fork 47
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
{"error":["Field 'policy_name' invalid"]} running @ v0.10.0 gem chef-api #82
Comments
We looked into this. The node object adds attributes for policy_name and policy_group: https://github.com/chef/chef-api/blob/cfafa5a32f3d98d102c0a873a8d67c57abcfa2f4/lib/chef-api/resources/node.rb#L13-L14 Assuming you want to create a node without these attributes, you must remove them. A better fix might be changing the serialization so that these attributes are omitted if nil. |
Thank you @jtatum for looking at this. Yeah, we we're just updating attributes for the node, like run_lists and normal attributes through chef-api but yeah it seems its appending or looking for the policy attribute? What will be our temporary solution to this? anyhow we're still using none v0.10's version. |
Hi @tas50 , @jtatum just a query, about changes in v0.10.5 in nodes resources,
What was changed and it does not perform any updates to chef server? Doing like:
Nothing happens compared before v0.10.x? and the node attributes are not updated. Thank you so much! |
@Doltair |
To add further context, chef policies are optional. If you choose not to have, it is set to |
Hi @tas50 , this repo has been marked as Deprecated. Is there a plan to write a new project to replace this? |
Hi, @tas50 Good day!
We tried using the latest gem v0.10.0, but we're having issues into it. Below are the error encountered.
Description
The text was updated successfully, but these errors were encountered: