Skip to content

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

Closed
@SteveL-MSFT

Description

@SteveL-MSFT

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions