Skip to content

Update subsystem resource#1473

Merged
SteveL-MSFT merged 2 commits intoPowerShell:mainfrom
tgauth:update-subsystem-resource
Apr 10, 2026
Merged

Update subsystem resource#1473
SteveL-MSFT merged 2 commits intoPowerShell:mainfrom
tgauth:update-subsystem-resource

Conversation

@tgauth
Copy link
Copy Markdown
Collaborator

@tgauth tgauth commented Apr 9, 2026

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes Microsoft.OpenSSH.SSHD/Subsystem so that omitting _exist defaults to creating/ensuring the subsystem (aligning behavior with the resource manifest and expected DSC “ensure-present” semantics).

Changes:

  • Change RepeatInput._exist deserialization default from false to true for repeat keyword single-entry operations (e.g., subsystem).
  • Add a Pester test validating the new default behavior when _exist is not provided.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
resources/sshdconfig/src/repeat_keyword.rs Updates serde default for _exist to true to ensure entries are created by default.
resources/sshdconfig/tests/sshdconfigRepeat.tests.ps1 Adds coverage to confirm _exist defaults to true when omitted.

@SteveL-MSFT SteveL-MSFT added this to the 3.2-Consider milestone Apr 10, 2026
@SteveL-MSFT SteveL-MSFT added this pull request to the merge queue Apr 10, 2026
Merged via the queue into PowerShell:main with commit 1be088c Apr 10, 2026
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SSHD Subsystem resource doesn't create subsystem if _exist isn't specified

3 participants