diff options
author | Trond Hindenes <trond@hindenes.com> | 2015-10-01 19:08:42 +0200 |
---|---|---|
committer | Trond Hindenes <trond@hindenes.com> | 2015-10-01 19:08:42 +0200 |
commit | 161b3cf1e1245aa3769692338952f609cab658a8 (patch) | |
tree | 64457e938a29e00fce3993d8a6da17c354fb5c2c /windows/win_package.ps1 | |
parent | 962afeed5434e944e39e37b835b514f9bb9ce9ab (diff) | |
download | ansible-modules-extras-161b3cf1e1245aa3769692338952f609cab658a8.tar.gz |
fixes #984
Diffstat (limited to 'windows/win_package.ps1')
-rw-r--r-- | windows/win_package.ps1 | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/windows/win_package.ps1 b/windows/win_package.ps1 index 02bb908a..6cdc6bf6 100644 --- a/windows/win_package.ps1 +++ b/windows/win_package.ps1 @@ -1237,10 +1237,15 @@ Set-Attr $result "changed" $false; $path = Get-Attr -obj $params -name path -failifempty $true -resultobj $result $name = Get-Attr -obj $params -name name -default $path -$productid = Get-Attr -obj $params -name productid -failifempty $true -resultobj $result +$productid = Get-Attr -obj $params -name productid +if ($productid -eq $null) +{ + #Alias added for backwards compat. + $productid = Get-Attr -obj $params -name product_id -failifempty $true -resultobj $result +} $arguments = Get-Attr -obj $params -name arguments $ensure = Get-Attr -obj $params -name state -default "present" -if (!$ensure) +if ($ensure -eq $null) { $ensure = Get-Attr -obj $params -name ensure -default "present" } |