Skip to content

Commit

Permalink
Merge pull request #39 from criteo-cookbooks/fix_true_false_powershell
Browse files Browse the repository at this point in the history
Translate TrueClass/FalseClass into correct powershell value
  • Loading branch information
Annih authored Jul 31, 2024
2 parents 37a1285 + 59a199f commit 0b0e454
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 0b0e454

Please sign in to comment.