-
-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix $openldap::server::database data type #329
Conversation
@@ -7,7 +7,7 @@ | |||
Optional[String[1]] $backend = undef, | |||
Optional[String[1]] $rootdn = undef, | |||
Optional[String[1]] $rootpw = undef, | |||
Optional[String[1]] $initdb = undef, | |||
Optional[Boolean] $initdb = undef, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I find Optional
strange for Booleans, because isn't undef
equivalent to false
? Seems like the default is true
in the type. Maybe remove Optional
and default it to true
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, this is indeed over-complicated and I was trying to decipher this.
Defaulting to true should be the right thing to do.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had to reverse this because the default value actually depend on the backend.
23651bd
to
0e35673
Compare
It is expected to be a boolean value. Was typed as string by mistake in c2ea6cb. While here, fix the parameter description.
0e35673
to
adca4cd
Compare
Okay, to quote a comment once read on a mailing list, "Don't trust the comments!" :-) The parameter defaults to true… unless we are in the cases where it default to false 🙃 At least, we have a CI that helped reading the right information in the right place! Reverted and updated the doc to match the code. |
Pull Request (PR) description
It is expected to be a boolean value. Was typed as string by mistake in
c2ea6cb.
This Pull Request (PR) fixes the following issues
Fixes #328