From 3020bf6c164a31651de66cf6aa0606ec1139c2be Mon Sep 17 00:00:00 2001 From: Gijs Reijn Date: Thu, 26 Jun 2025 05:38:23 +0200 Subject: [PATCH 1/2] Fix ClearCache example --- docs/reference/resources/Microsoft/DSC/PowerShell/index.md | 2 +- .../resources/Microsoft/Windows/WindowsPowerShell/index.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/reference/resources/Microsoft/DSC/PowerShell/index.md b/docs/reference/resources/Microsoft/DSC/PowerShell/index.md index 2b5440d3e..1473b0db4 100644 --- a/docs/reference/resources/Microsoft/DSC/PowerShell/index.md +++ b/docs/reference/resources/Microsoft/DSC/PowerShell/index.md @@ -86,7 +86,7 @@ set to `ClearCache`: $adapterScript = dsc resource list Microsoft.DSC/PowerShell | ConvertFrom-Json | Select-Object -ExpandProperty directory | - Join-Path + Join-Path -ChildPath ([System.IO.Path]::Combine("psDscAdapter", "powershell.resource.ps1")) & $adapterScript -Operation ClearCache ``` diff --git a/docs/reference/resources/Microsoft/Windows/WindowsPowerShell/index.md b/docs/reference/resources/Microsoft/Windows/WindowsPowerShell/index.md index 914640ffb..ffa5eb6c0 100644 --- a/docs/reference/resources/Microsoft/Windows/WindowsPowerShell/index.md +++ b/docs/reference/resources/Microsoft/Windows/WindowsPowerShell/index.md @@ -83,7 +83,7 @@ set to `ClearCache`: $adapterScript = dsc resource list Microsoft.Windows/WindowsPowerShell | ConvertFrom-Json | Select-Object -ExpandProperty directory | - Join-Path + Join-Path -ChildPath ([System.IO.Path]::Combine("psDscAdapter", "powershell.resource.ps1")) & $adapterScript -Operation ClearCache ``` From 9e6c3bec72f874b92f2004d3da1f03aaac986cbc Mon Sep 17 00:00:00 2001 From: Gijs Reijn Date: Tue, 1 Jul 2025 04:26:28 +0200 Subject: [PATCH 2/2] Resolve remarks --- docs/reference/resources/Microsoft/DSC/PowerShell/index.md | 2 +- .../resources/Microsoft/Windows/WindowsPowerShell/index.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/reference/resources/Microsoft/DSC/PowerShell/index.md b/docs/reference/resources/Microsoft/DSC/PowerShell/index.md index 1473b0db4..71d34f14c 100644 --- a/docs/reference/resources/Microsoft/DSC/PowerShell/index.md +++ b/docs/reference/resources/Microsoft/DSC/PowerShell/index.md @@ -86,7 +86,7 @@ set to `ClearCache`: $adapterScript = dsc resource list Microsoft.DSC/PowerShell | ConvertFrom-Json | Select-Object -ExpandProperty directory | - Join-Path -ChildPath ([System.IO.Path]::Combine("psDscAdapter", "powershell.resource.ps1")) + Join-Path -ChildPath 'psDscAdapter' -AdditionalChildPath 'powershell.resource.ps1' & $adapterScript -Operation ClearCache ``` diff --git a/docs/reference/resources/Microsoft/Windows/WindowsPowerShell/index.md b/docs/reference/resources/Microsoft/Windows/WindowsPowerShell/index.md index ffa5eb6c0..0bfa8fb34 100644 --- a/docs/reference/resources/Microsoft/Windows/WindowsPowerShell/index.md +++ b/docs/reference/resources/Microsoft/Windows/WindowsPowerShell/index.md @@ -83,7 +83,7 @@ set to `ClearCache`: $adapterScript = dsc resource list Microsoft.Windows/WindowsPowerShell | ConvertFrom-Json | Select-Object -ExpandProperty directory | - Join-Path -ChildPath ([System.IO.Path]::Combine("psDscAdapter", "powershell.resource.ps1")) + Join-Path -ChildPath 'psDscAdapter\powershell.resource.ps1' & $adapterScript -Operation ClearCache ```