Skip to content

Commit

Permalink
Fixed bugs in 'DscTagging' (#216)
Browse files Browse the repository at this point in the history
  • Loading branch information
raandree authored Jul 27, 2023
1 parent 13d1e6b commit a6d8b9f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- `WindowsOptionalFeatures` and `WindowsFeatures` are using the DSC resource in `xPSDesiredStateConfiguration` now.
- `CertificateRequests` supports multiple certificates with the same issuer and subject by making friendlyName a mandatory (key) parameter.

### Fixed

- Fixed bugs in 'DscTagging'

## [0.9.0] - 2023-02-08

### Added
Expand Down
4 changes: 2 additions & 2 deletions source/DSCResources/DscTagging/DscTagging.schema.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ configuration DscTagging {
Import-DscResource -ModuleName PSDesiredStateConfiguration
Import-DscResource -ModuleName xPSDesiredStateConfiguration

if ($DisableGitCommitId -ne $false)
if (-not $DisableGitCommitId)
{
$gitCommitId = git log -n 1 *>&1
$gitCommitId = if ($gitCommitId -like '*fatal*')
Expand Down Expand Up @@ -85,7 +85,7 @@ configuration DscTagging {
{
Key = 'HKEY_LOCAL_MACHINE\SOFTWARE\DscTagging'
ValueName = 'BuildNumber'
ValueData = "$($env:BHBuildNumber)"
ValueData = "$($env:BUILD_BUILDID)"
ValueType = 'String'
Ensure = 'Present'
Force = $true
Expand Down

0 comments on commit a6d8b9f

Please sign in to comment.