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

Prevent resources from loading if supports check fails #2665

Merged
merged 2 commits into from
Feb 16, 2018

Conversation

jquick
Copy link
Contributor

@jquick jquick commented Feb 16, 2018

This change prevents resources from initializing if we are not on a supported platform. This also fixes the issue where resource_fail/skip were not working correctly when using a where clause on a resource.

Fixes #2662

Signed-off-by: Jared Quick [email protected]

@jquick jquick requested a review from a team as a code owner February 16, 2018 18:17
Copy link
Contributor

@chris-rock chris-rock left a comment

Choose a reason for hiding this comment

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

Looks good to me

@jquick jquick force-pushed the jq/fix_resource_supports branch from 68b5e9c to 8486e5e Compare February 16, 2018 18:24
@jquick jquick requested a review from clintoncwolfe February 16, 2018 18:25
@jquick jquick force-pushed the jq/fix_resource_supports branch from 8486e5e to 9f623c1 Compare February 16, 2018 18:28
Copy link
Contributor

@clintoncwolfe clintoncwolfe left a comment

Choose a reason for hiding this comment

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

Looks good - I see where the init is avoided if the supports check failed

Signed-off-by: Jared Quick <[email protected]>
@jquick jquick added the bug label Feb 16, 2018
@jquick jquick merged commit db96ee9 into master Feb 16, 2018
@jquick jquick deleted the jq/fix_resource_supports branch February 16, 2018 20:15
kagarmoe pushed a commit that referenced this pull request Feb 19, 2018
* Prevent resources from loading if supports fail.

Signed-off-by: Jared Quick <[email protected]>
@clintoncwolfe clintoncwolfe added Type: Bug Feature not working as expected and removed bug labels Apr 26, 2018
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.

API supports not working correctly
4 participants