Skip to content

Commit

Permalink
Allow to pass a String for rid
Browse files Browse the repository at this point in the history
It is not uncommon to set the `rid` as a fixed-width string with 0
padding. For Puppet, `001` is the octal number 1 and the fixed-width is
"lost", so add the ability to pass it as a string of up to three digits
like `"001"` which will be kept unchanged.
  • Loading branch information
smortex committed Apr 4, 2024
1 parent 6d9cdeb commit e46fabf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/syncrepl.pp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# @see https://www.openldap.org/doc/admin24/slapdconfig.html#syncrepl
type Openldap::Syncrepl = Struct[
{
rid => Integer[0, 999],
rid => Variant[Integer[0, 999], Pattern['\A\d{1,3}\z']],
provider => Pattern['\Aldaps?://[^/:]+(:\d+)?\z'],
searchbase => String[1],
Optional['type'] => Enum['refreshOnly', 'refreshAndPersist'],
Expand Down

0 comments on commit e46fabf

Please sign in to comment.