Skip to content

Commit

Permalink
Changes to xBitLocker
Browse files Browse the repository at this point in the history
- Fix hashtables according to the style guideline.
  • Loading branch information
johlju committed Aug 28, 2020
1 parent af3361e commit eb38f55
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Unreleased

- Fix hashtables according to the style guideline.

## 1.4.0.0

- Change double quoted string literals to single quotes
Expand Down
8 changes: 6 additions & 2 deletions DSCResources/MSFT_xBLAutoBitlocker/MSFT_xBLAutoBitlocker.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,9 @@ function Set-TargetResource
else
{
Remove-FromPSBoundParametersUsingHashtable -PSBoundParametersIn $PSBoundParameters -ParamsToRemove 'DriveType', 'MinDiskCapacityGB'
Add-ToPSBoundParametersFromHashtable -PSBoundParametersIn $PSBoundParameters -ParamsToAdd @{'MountPoint' = ''}
Add-ToPSBoundParametersFromHashtable -PSBoundParametersIn $PSBoundParameters -ParamsToAdd @{
'MountPoint' = ''
}

# Loop through each potential AutoBitlocker volume, see whether they are enabled for Bitlocker, and if not, enable it
foreach ($key in $autoBlVols.Keys)
Expand Down Expand Up @@ -575,7 +577,9 @@ function Test-TargetResource
else
{
Remove-FromPSBoundParametersUsingHashtable -PSBoundParametersIn $PSBoundParameters -ParamsToRemove 'DriveType', 'MinDiskCapacityGB'
Add-ToPSBoundParametersFromHashtable -PSBoundParametersIn $PSBoundParameters -ParamsToAdd @{'MountPoint' = ''}
Add-ToPSBoundParametersFromHashtable -PSBoundParametersIn $PSBoundParameters -ParamsToAdd @{
'MountPoint' = ''
}

# Check whether any potential AutoBitlocker volume is not currently enabled for Bitlocker, or doesn't have the correct settings
foreach ($key in $autoBlVols.Keys)
Expand Down

0 comments on commit eb38f55

Please sign in to comment.