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 #20656 - Show better message for policy without tailoring file #277
Conversation
There were the following issues with the commit message:
If you don't have a ticket number, please create an issue in Redmine. More guidelines are available in Coding Standards or on the Foreman wiki. This message was auto-generated by Foreman's prprocessor |
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.
just one nit, otherwise works great
before:
{
"error": {"message":"Internal Server Error: the server was unable to finish the request. This may be caused by unavailability of some required service, incorrect API call or a server-side bug. There may be more information in the server's logs."}
}
after:
{"error":{"message":"No Tailoring file assigned for policy with id 11"}}%
:type => 'application/xml', | ||
:filename => @tailoring_file.original_filename | ||
else | ||
render(:json => { :error => { :message => "No Tailoring file assigned for policy with id #{@policy.id}" } }, :status => 404) |
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.
since this is no longer internal server error but rather expected response, I think the text should be extracted for translations
I extracted the test for translations. |
APJ |
Thanks @xprazak2, merging! |
No description provided.