Skip to content

Commit

Permalink
Translate TrueClass/FalseClass into correct powershell value
Browse files Browse the repository at this point in the history
Equivalents of TrueClass & FalseClass in powershell are $true & $false.
  • Loading branch information
Annih committed Jul 31, 2024
1 parent 37a1285 commit 59a199f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/base_provider.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ def powershell_out64(cmd, timeout=300)

def powershell_value(val)
case val
when FalseClass
'false'
when TrueClass, FalseClass
"$#{val}"
when Array
"@(#{val.map { |v| powershell_value(v) }.join(',')})"
when Hash
Expand Down

0 comments on commit 59a199f

Please sign in to comment.