Fix #1107: Prepend registry type on key path
This commit is contained in:
parent
6fed60c1bd
commit
92cbe5be0e
1 changed files with 2 additions and 0 deletions
|
@ -31,6 +31,8 @@ $state = Get-Attr -obj $params -name "state" -validateSet "present","absent" -de
|
||||||
$registryData = Get-Attr -obj $params -name "data" -default $null
|
$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"
|
$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)
|
If ($state -eq "present" -and $registryData -eq $null -and $registryValue -ne $null)
|
||||||
{
|
{
|
||||||
Fail-Json $result "missing required argument: data"
|
Fail-Json $result "missing required argument: data"
|
||||||
|
|
Loading…
Reference in a new issue