-
-
Notifications
You must be signed in to change notification settings - Fork 25
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
replace validate_* with datatypes/assert_type #40
Conversation
manifests/init.pp
Outdated
String $package_name = $nsclient::params::package_name, | ||
$download_destination = $nsclient::params::download_destination, | ||
String $config_template = $nsclient::params::config_template, | ||
String $install_path = $nsclient::params::install_path |
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.
Not absolute path?
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 always try to only replace the old validate method. In this case it was validate_string and not validate_path
manifests/install.pp
Outdated
validate_string($nsclient::package_source) | ||
validate_string($nsclient::package_name) | ||
validate_string($nsclient::install_path) | ||
assert_type(String, $nsclient::package_source_location) |
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.
Given init.pp is the entry point, these would have already generated a failure earlier, no?
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
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.
updated it
No description provided.