From e46fabf55623462310aabca958a02f8498fd3ef3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Tarti=C3=A8re?= Date: Wed, 3 Apr 2024 15:44:42 -1000 Subject: [PATCH] Allow to pass a String for `rid` 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. --- types/syncrepl.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/syncrepl.pp b/types/syncrepl.pp index 9f0dd0e8..7c1837d8 100644 --- a/types/syncrepl.pp +++ b/types/syncrepl.pp @@ -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'],