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

Add new rhnget options #44

Merged
merged 2 commits into from Sep 15, 2016
Merged

Conversation

alexjfisher
Copy link
Member

Rebase of #36 plus additional commit with tests.

matonb and others added 2 commits September 15, 2016 13:37
Add `rhnget_cleanup` and `rhnget_download_all` parameters
@alexjfisher
Copy link
Member Author

@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 {
Copy link
Member

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

Copy link
Member Author

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

Copy link
Member

Choose a reason for hiding this comment

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

Oh yeah, cheerfully withdrawn

Copy link
Member Author

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?

Copy link
Contributor

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)
Copy link
Member

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 {
Copy link
Member

Choose a reason for hiding this comment

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

Oh yeah, cheerfully withdrawn

@matonb
Copy link
Contributor

matonb commented Sep 15, 2016

@alexjfisher 👍 Looks fine to me ( but I am having another squinty day today )

@alexjfisher alexjfisher merged commit 2c15bed into voxpupuli:master Sep 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants