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

Make resource discovery not terminating when hitting an error depending on use case #121

Closed
SteveL-MSFT opened this issue Aug 1, 2023 · 0 comments · Fixed by #240
Closed
Assignees
Labels
Issue-Enhancement The issue is a feature or idea

Comments

@SteveL-MSFT
Copy link
Member

Summary of the new feature / enhancement

Currently, during discovery if there is any error, the entire operation fails. Instead we need to consider the usage:

  • if part of a configuration, if the error is not related to the resources actually being used, we can ignore any errors and only emit a message to stderr if --verbose is used
  • if part of dsc resource list, we can emit a warning type message to stderr but continue discovery listing the results
  • if direct resource invocation, if that resource is being used, then fail, otherwise same as config above

Proposed technical implementation details (optional)

No response

@SteveL-MSFT SteveL-MSFT added the Issue-Enhancement The issue is a feature or idea label Aug 1, 2023
@SteveL-MSFT SteveL-MSFT changed the title Make dsc resource list not terminating when hitting an error Make resource discovery not terminating when hitting an error depending on use case Aug 1, 2023
@anmenaga anmenaga self-assigned this Aug 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Enhancement The issue is a feature or idea
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants