Skip to content

Commit

Permalink
Merge pull request #106 from dsccommunity/ReverseDSCQueries_WithQuotes
Browse files Browse the repository at this point in the history
ConfigmgrCBDSC-ReverseDSC: Modifying Reverse DSC Collection Query
  • Loading branch information
NEllis280 authored Apr 12, 2022
2 parents badb996 + 26acf67 commit 75c7d26
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

- Fixed issue in Reverse DSC that affected collection query capture
when collection queries have quotes.

## [3.0.0] - 2022-01-03

### Added
Expand Down
17 changes: 10 additions & 7 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,15 @@ stages:
pool:
vmImage: 'ubuntu 18.04'
steps:
- task: GitVersion@5
name: gitVersion
displayName: 'Evaluate Next Version'
inputs:
runtime: 'core'
configFilePath: 'GitVersion.yml'
- pwsh: |
dotnet tool install --global GitVersion.Tool
$gitVersionObject = dotnet-gitversion | ConvertFrom-Json
$gitVersionObject.PSObject.Properties.ForEach{
Write-Host -Object "Setting Task Variable '$($_.Name)' with value '$($_.Value)'."
Write-Host -Object "##vso[task.setvariable variable=$($_.Name);]$($_.Value)"
}
Write-Host -Object "##vso[build.updatebuildnumber]$($gitVersionObject.FullSemVer)"
displayName: Calculate ModuleVersion (GitVersion)
- task: PowerShell@2
name: package
displayName: 'Build & Package Module'
Expand All @@ -38,7 +41,7 @@ stages:
arguments: '-ResolveDependency -tasks pack'
pwsh: true
env:
ModuleVersion: $(gitVersion.InformationalVersion)
ModuleVersion: $(NuGetVersionV2)
- task: PublishBuildArtifacts@1
displayName: 'Publish Build Artifact'
inputs:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ function Set-OutFile
{
$tester += "`t`t`t@{`r`n"
$tester += "`t`t`t`tRuleName = '$($item.RuleName)'`r`n"
$tester += "`t`t`t`tQueryExpression = '$($item.QueryExpression)'`r`n"
$tester += "`t`t`t`tQueryExpression = '$($item.QueryExpression.Replace("'","''"))'`r`n"
$tester += "`t`t`t}`r`n"
}
$tester += "`t`t)`r`n"
Expand Down

0 comments on commit 75c7d26

Please sign in to comment.