Fix #1107: Prepend registry type on key path

This commit is contained in:
Brian Geihsler 2015-10-14 11:04:38 -07:00
parent d0e3a315ac
commit c6a934d57b

View file

@ -31,6 +31,8 @@ $state = Get-Attr -obj $params -name "state" -validateSet "present","absent" -de
$registryData = Get-Attr -obj $params -name "data" -default $null
$registryDataType = Get-Attr -obj $params -name "datatype" -validateSet "binary","dword","expandstring","multistring","string","qword" -default "string"
$registryKey = "Registry::" + $registryKey
If ($state -eq "present" -and $registryData -eq $null -and $registryValue -ne $null)
{
Fail-Json $result "missing required argument: data"