-
Notifications
You must be signed in to change notification settings - Fork 134
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
Fixes #30507: Use enabled hook helpers for Katello and Foreman #546
Conversation
if app_value('certs_update_server_ca') && !katello_enabled? | ||
fail_and_exit("--certs-update-server-ca needs to be used with katello", 101) | ||
end |
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 part should really be a pre_commit
hook IMHO. In pre
the answers are already saved to disk. You should fail on invalid user input in pre
.
It should also check if the certs
module is enabled, rather than katello
, right? It checks if the certs
params are passed in and I think that server_ca_cert
can also be used on a content proxy.
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.
File an issue if you don't mind, touching our certs code requires a Friday :P
Added candlepin_enabled? helper |
This could use another round of review |
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.
Looks like I had comments that I failed to submit
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.
Overall this looks ok, but holding off until we merge tuning.
@@ -15,7 +15,7 @@ def error_exit(message, code) | |||
kafo.class.exit code | |||
end | |||
|
|||
if module_enabled?('katello') | |||
if candlepin_enabled? | |||
java_version_string = `/usr/bin/java -version 2>&1` | |||
java_version = java_version_string.split("\n")[0].split('"')[1] |
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.
On an unrelated note: I think this check itself should ensure JDK 1.8 is used since 1.7 is too old.
No description provided.