-
-
Notifications
You must be signed in to change notification settings - Fork 30
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 deprecated functions with data types #24
Conversation
manifests/init.pp
Outdated
$config_file = $winlogbeat::params::config_file, | ||
$outputs = $winlogbeat::params::outputs, | ||
Hash $outputs = $winlogbeat::params::outputs, |
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.
Can you enforce the structure of the hash?
validate_string($registry_file, $package_ensure) | ||
|
||
if(!empty($proxy_address)){ | ||
if(!empty($proxy_address)){ | ||
validate_re($proxy_address, ['^(http(?:s)?\:\/\/[a-zA-Z0-9]+(?:(?:\.|\-)[a-zA-Z0-9]+)+(?:\:\d+)?(?:\/[\w\-]+)*(?:\/?|\/\w+\.[a-zA-Z]{2,4}(?:\?[\w]+\=[\w\-]+)?)?(?:\&[\w]+\=[\w\-]+)*)$'], 'ERROR: You must enter a proxy url in a valid format i.e. http://proxy.net:3128') |
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.
Should we save this regex as a custom datatype? the validate_re()
method is deprecated as well.
Hi @f1ngerscr0ssed, thanks for the PR! Can you please take a look at the travis issues and the inline comments I made? |
Dear @f1ngerscr0ssed, thanks for the PR! This is Vox Pupuli Tasks, your friendly Vox Pupuli GitHub Bot. I noticed that your pull request contains merge conflict. Can you please rebase? You can find my sourcecode at voxpupuli/vox-pupuli-tasks |
3 similar comments
Dear @f1ngerscr0ssed, thanks for the PR! This is Vox Pupuli Tasks, your friendly Vox Pupuli GitHub Bot. I noticed that your pull request contains merge conflict. Can you please rebase? You can find my sourcecode at voxpupuli/vox-pupuli-tasks |
Dear @f1ngerscr0ssed, thanks for the PR! This is Vox Pupuli Tasks, your friendly Vox Pupuli GitHub Bot. I noticed that your pull request contains merge conflict. Can you please rebase? You can find my sourcecode at voxpupuli/vox-pupuli-tasks |
Dear @f1ngerscr0ssed, thanks for the PR! This is Vox Pupuli Tasks, your friendly Vox Pupuli GitHub Bot. I noticed that your pull request contains merge conflict. Can you please rebase? You can find my sourcecode at voxpupuli/vox-pupuli-tasks |
Hi there! Is it ok if I take care of this issue, as I need the module to be updated ? |
Of course! Feel free to open a new PR, I guess that you can add Thank you! |
superseded by #68 |
Pull Request (PR) description
validate_* function from the puppetlabs/stdlib are deprecated and should be replaced by a call to validate_legacy or using data types.
The params have been assigned a type based on the validate_type function that was used before.