Skip to content

Commit

Permalink
(MODULES-6528) Change registry::value types
Browse files Browse the repository at this point in the history
 - Fix the bug introduced in 48a0b07
   that did not have lenient enough typing for the $data parameter to
   the registry::value defined type.

 - This commit adds support for numerics, which are necessary for
   dword and qword. It also adds support for arrays, which are always
   an array of strings (corresponding to REG_MULTI_SZ).
  • Loading branch information
Iristyle committed Jan 25, 2018
1 parent 0f86b95 commit 94122fc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion manifests/value.pp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,11 @@
Pattern[/^\w+/] $key,
Optional[String] $value = undef,
Optional[Pattern[/^\w+/]] $type = 'string',
Optional[String] $data = undef,
Optional[Variant[
String,
Numeric,
Array[Variant[String]
]]] $data = undef,
) {

# ensure windows os
Expand Down

0 comments on commit 94122fc

Please sign in to comment.