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

No error when invalid adapter name is provided #477

Closed
3 tasks done
SteveL-MSFT opened this issue Jul 1, 2024 · 0 comments · Fixed by #506
Closed
3 tasks done

No error when invalid adapter name is provided #477

SteveL-MSFT opened this issue Jul 1, 2024 · 0 comments · Fixed by #506
Assignees
Labels
Issue-Bug Something isn't working Need-Review
Milestone

Comments

@SteveL-MSFT
Copy link
Member

SteveL-MSFT commented Jul 1, 2024

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest version
  • Search the existing issues.

Summary

When listing resources and you make a typo in the adapter name, no error is returned. When using --adapter we should check if that returns no results (since it can be a wildcard), then we should error.

Steps to reproduce

dsc resource list --adapter foo

Expected behavior

An error that `foo` is not a valid adapter

Actual behavior

No resources listed

Error details

No response

Environment data

NA

Version

dsc 3.0.0-preview.8

Visuals

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug Something isn't working Need-Review
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant