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
Add new rhnget
options
#44
Conversation
Add `rhnget_cleanup` and `rhnget_download_all` parameters
@matonb Thanks for your PR. I've incorporated your change into this new rebased PR and added some tests. Does this look ok to you? |
@@ -140,6 +152,12 @@ | |||
validate_re($rhn_password, '.+') | |||
} | |||
|
|||
if $rhnget_cleanup != 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.
This could be rebased to be if $rhnget_cleanup
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.
no, as this is a boolean if not 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.
Oh yeah, cheerfully withdrawn
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.
Maybe I take that back. I suppose if it is false
there's no real need to hit the validate_bool
. But it might be safer to leave as is in case any other code is ever added to the if block?
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.
It'll also catch any bits where I've already used 'yes' / 'no' in a manifest
validate_bool($rhnget_cleanup) | ||
} | ||
if $rhnget_download_all != undef { | ||
validate_bool($rhnget_download_all) |
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.
This could be rebased to be if $rhnget_download_all
@@ -140,6 +152,12 @@ | |||
validate_re($rhn_password, '.+') | |||
} | |||
|
|||
if $rhnget_cleanup != 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.
Oh yeah, cheerfully withdrawn
@alexjfisher 👍 Looks fine to me ( but I am having another squinty day today ) |
Rebase of #36 plus additional commit with tests.