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

Supermarket tools get and filter by tool_type #1254

Merged
merged 1 commit into from
Oct 26, 2016

Conversation

alexpop
Copy link
Contributor

@alexpop alexpop commented Oct 26, 2016

With InSpec in master:

$ inspec supermarket profiles | grep '^ * ' | wc -l
       8

With the change in this PR:

$ bundle exec inspec supermarket profiles | grep '^ * ' | wc -l
      11

It fixes the profiles list issue by querying the most recent 100(out of 126 at the moment) tools and filtering by tool_type. The API returns max 100 items.
The oldest compliance profile is number 25 on that list. This gives us a few months until the supermarket search API will have a type filter.

Signed-off-by: Alex Pop <apop@chef.io>
@alexpop alexpop added the Type: Bug Feature not working as expected label Oct 26, 2016
@alexpop alexpop self-assigned this Oct 26, 2016
@chris-rock
Copy link
Contributor

Thanks @alexpop for this intermediate fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Feature not working as expected
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants