Skip to content
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

prohibit empty string for $compression #309

Closed
wants to merge 1 commit into from

Conversation

bastelfreak
Copy link
Member

Pull Request (PR) description

This Pull Request (PR) fixes the following issues

@bastelfreak bastelfreak changed the title Compression fix use datatype for $local, prohibit empty string Oct 21, 2018
@bastelfreak bastelfreak changed the title use datatype for $local, prohibit empty string prohibit empty string for $compression Oct 21, 2018
@@ -195,7 +195,7 @@
#
define openvpn::client (
String $server,
String $compression = 'comp-lzo',
Optional[String[1]] $compression = 'comp-lzo',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since it doesn’t default to undef, how am I supposed to set it to undef?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a call of the defined type like this ?

openvpn::client { 'myclient':
  compression => undef,
  ...
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope. If you do that, it'll use the default value.

@Dan33l Dan33l mentioned this pull request Jan 4, 2019
@Dan33l
Copy link
Member

Dan33l commented May 9, 2019

Done in PR #333

@Dan33l Dan33l closed this May 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants