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

Add some resources to data collector instead of empty run #7

Closed

Conversation

danielsdeleo
Copy link

Adds a hardcoded set of 10 updated resources to the data collector request. Ideally this would be a lot larger and configurable, but for now it's an improvement over just sending empty run data.

Signed-off-by: Daniel DeLeo dan@chef.io

"cookbook_version": "0.1.1",
"conditional": "not_if { #code block }"
}
`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The list's closing bracket ] is missing. Please add that and indent the resources.

Signed-off-by: Daniel DeLeo <dan@chef.io>
@danielsdeleo
Copy link
Author

derp, already changed that but forgot to commit it. done.

@jeremiahsnapp
Copy link
Contributor

Thanks @danielsdeleo for pointing in the right direction. As of 0.5.0 you can now use the converge_status_json_file and compliance_status_json_file options to apply sample data to the API requests so I'll close this PR.

https://github.com/jeremiahsnapp/chef-load#using-sample-json-data-files

@danielsdeleo
Copy link
Author

Cool, that's a better implementation anyway, I was just doing what was expedient for me at the time. 👍

@danielsdeleo danielsdeleo deleted the static-updated-resources branch June 22, 2017 20:41
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

Successfully merging this pull request may close these issues.

2 participants