Skip to content

Commit

Permalink
win_region - fix junk output (#390)
Browse files Browse the repository at this point in the history
  • Loading branch information
jborean93 authored May 3, 2022
1 parent 802b071 commit ac637ac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions changelogs/fragments/win_region-output.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bugfixes:
- win_region - Fix junk output when copying settings across users
2 changes: 1 addition & 1 deletion plugins/modules/win_region.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ if ($null -ne $unicode_language) {

if ($copy_settings -eq $true -and $module.Result.changed -eq $true) {
if (-not $check_mode) {
New-PSDrive -Name HKU -PSProvider Registry -Root Registry::HKEY_USERS
$null = New-PSDrive -Name HKU -PSProvider Registry -Root Registry::HKEY_USERS

if (Test-Path -LiteralPath HKU:\ANSIBLE) {
$module.Warn("hive already loaded at HKU:\ANSIBLE, had to unload hive for win_region to continue")
Expand Down

0 comments on commit ac637ac

Please sign in to comment.