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

Knockouts don't work for: Basetype Arrays #127

Open
raandree opened this issue Aug 17, 2022 · 0 comments
Open

Knockouts don't work for: Basetype Arrays #127

raandree opened this issue Aug 17, 2022 · 0 comments

Comments

@raandree
Copy link
Contributor

raandree commented Aug 17, 2022

It is not documented but one would expect that removing values using the knockout prefix would work with base type arrays.

Windows Features defined in the role:

WindowsFeatures:
  Names:
    - File-Services
    - Feature1

Windows Features defined on the node:

WindowsFeatures:
  Names:
    - --Feature1

Actual RSOP:

WindowsFeatures:
  Names:
  - File-Services                                                                               AllNodes\Dev\DSCFile01
  - --Feature1                                                                                  AllNodes\Dev\DSCFile01
  - Feature1                                                                                          Roles\FileServer
  - -Telnet-Client                                                                                  Baselines\Security

Expected RSOP:

WindowsFeatures:
  Names:
  - File-Services                                                                               AllNodes\Dev\DSCFile01
  - -Telnet-Client                                                                                  Baselines\Security

The datum.yml definition for merging and knockout looks like this:

WindowsFeatures:
  merge_hash: deep
WindowsFeatures\Names:
  merge_basetype_array: Unique
  merge_options:
    knockout_prefix: --

I am currently working on code to make this working.

@raandree raandree changed the title Knockouts don't work for: Basetype Arrays. Knockouts don't work for: Basetype Arrays Aug 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant