Skip to content

Commit

Permalink
Merge pull request #21 from briantist/ArrayPropertyValueBug
Browse files Browse the repository at this point in the history
Array property value bug
  • Loading branch information
briantist authored Jul 16, 2017
2 parents 15836b7 + c1e2c98 commit 374584b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Data/Definitions.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ $params = @{}
foreach($h in $MyInvocation.MyCommand.Parameters.GetEnumerator()) {
try {
$key = $h.Key
$val = Get-Variable -Name $key -ErrorAction Stop | Select-Object -ExpandProperty Value -ErrorAction Stop
$val = Get-Variable -Name $key -ValueOnly -ErrorAction Stop
if (([String]::IsNullOrEmpty($val) -and (!$PSBoundParameters.ContainsKey($key)))) {
throw "A blank value that wasn't supplied by the user."
}
Expand Down
Binary file modified Idempotion.psd1
Binary file not shown.

0 comments on commit 374584b

Please sign in to comment.