Skip to content
This repository was archived by the owner on May 9, 2020. It is now read-only.

allow partial search with chef.Search#76

Open
ryanohnemus wants to merge 2 commits intocoderanger:masterfrom
ryanohnemus:feature/partial_search
Open

allow partial search with chef.Search#76
ryanohnemus wants to merge 2 commits intocoderanger:masterfrom
ryanohnemus:feature/partial_search

Conversation

@ryanohnemus
Copy link
Copy Markdown

I added an optional filter_result parameter to get a minimal/filtered set of attributes when searching

Note: this doesn't give back a full ChefObject since the partial search only returns the parts of the object you request, so the data is returned in the row['data'] attribute

Chef Doc: https://docs.chef.io/api_chef_server.html#id76

closes #17

Loading
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Partial Search?

2 participants