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

Support source location from pipeline objects #729

Closed
BernieWhite opened this issue May 27, 2021 · 0 comments · Fixed by #730
Closed

Support source location from pipeline objects #729

BernieWhite opened this issue May 27, 2021 · 0 comments · Fixed by #730
Assignees
Labels
enhancement New feature or request feature: output Issues that affect output and results
Milestone

Comments

@BernieWhite
Copy link
Member

Currently PSRule reads and exposes the source location information in results from objects that it read from JSON or YAML.

Currently objects that are passed from the pipeline or through conventions via $PSRule.Import() can't expose an original source location for the object.

For example with PSRule for Azure:

  1. Objects are read from an Azure template by merging context.
  2. These objects are then written to an output JSON or imported into the pipeline.
  3. At this point the original source location the object is lost.

PSRule should consume _PSRule properties on input objects from the pipeline.

@BernieWhite BernieWhite added enhancement New feature or request feature: output Issues that affect output and results labels May 27, 2021
@BernieWhite BernieWhite added this to the v1.4.0 milestone May 27, 2021
@BernieWhite BernieWhite self-assigned this May 27, 2021
BernieWhite added a commit to BernieWhite/PSRule that referenced this issue May 27, 2021
This was referenced May 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request feature: output Issues that affect output and results
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant