Skip to content

fix: Short-circuit adapter discovery when a native resource type has no matching version#1532

Draft
Gijsreyn wants to merge 1 commit into
PowerShell:mainfrom
Gijsreyn:gh-1531/main/fix-discovery-requireversion
Draft

fix: Short-circuit adapter discovery when a native resource type has no matching version#1532
Gijsreyn wants to merge 1 commit into
PowerShell:mainfrom
Gijsreyn:gh-1531/main/fix-discovery-requireversion

Conversation

@Gijsreyn
Copy link
Copy Markdown
Collaborator

PR Summary

This pull request makes discovery fail fast in a scenario when a configuration document pins a resource with requireVersion, and the requested type is a known native command-based DSC resource, but no installed version satisfies the requirement.

When a user adds the requireAdapter in the configuration document, a sweep still runs, so that behavior is unchanged. It is mainly on native type + version mismatch + no requireAdapter.

PR Context

Fixes #1531

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.

Discovery falls through to adapters when requireVersion doesn't match a native resource

1 participant