-
Notifications
You must be signed in to change notification settings - Fork 34
config export
does not preserve incoming metadata
#668
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
Comments
PS nuisance issue: requiring 1 property to be present, even for export resources, is annoying. |
|
Works:
Both get
|
Workaround for now is to provide an empty object so it's not $schema: https://github.com/raw/PowerShell/DSC/main/schemas/2024/04/config/document.json
resources:
- name: OS
type: Microsoft/OSInfo
properties: {} However, I consider this a bug. Let me look into it to see if it's simple or complex to fix. |
@JohnMcPMS the |
Prerequisites
Summary
When passing a configuration document to
config export
, the metadata in the original document is not in the output document.Steps to reproduce
With this document:
The result of
dsc config export repro.yml
is:Expected behavior
Metadata properties *other* than `Microsoft.DSC` in the original document are in the resulting document.
Actual behavior
Only the `Microsoft.DSC` properties are in the output document.
Error details
Environment data
Version
3.0.0-rc.1
Visuals
No response
The text was updated successfully, but these errors were encountered: