Skip to content

Commit

Permalink
Fix win_powershell usings (#572)
Browse files Browse the repository at this point in the history
Remove the unecessary using entry in the compiled code causing Roslyn to
emit a warning during compilation. This only affected people running
with an executable as the in process option did not need to recompile
the code that had this.
  • Loading branch information
jborean93 authored Jan 2, 2024
1 parent 0c7c89f commit 8dc31d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions changelogs/fragments/win_powershell-fix-using.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bugfixes:
- win_powershell - Remove unecessary using in code causing stray error records in output - https://github.com/ansible-collections/ansible.windows/issues/571
1 change: 0 additions & 1 deletion plugins/modules/win_powershell.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ $module.Result.debug = @()
$module.Result.information = @()

$stdPinvoke = @'
using Microsoft.Win32.SafeHandles;
using System;
using System.Runtime.InteropServices;
Expand Down

0 comments on commit 8dc31d6

Please sign in to comment.