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 certname to error output in external_node_v2.rb #718

Merged
merged 1 commit into from
Apr 5, 2019

Conversation

antaflos
Copy link
Contributor

This helps with debugging and gives error output more context. For
example Foreman will not accept pushed facts for a host that is
currently being built. With this change the error message changes from
this:

During the fact upload the server responded with: 422 Unprocessable Entity. Error is ignored and the execution continues.
{"message":"ERF42-9911 [Foreman::Exception]: Host is pending for Build"}

To this, which is preferable:

app03.dev.example.com: During the fact upload the server responded with: 422 Unprocessable Entity. Error is ignored and the execution continues.
{"message":"ERF42-9911 [Foreman::Exception]: Host is pending for Build"}

This helps with debugging and gives error output more context. For
example Foreman will not accept pushed facts for a host that is
currently being built. With this change the error message changes from
this:

    During the fact upload the server responded with: 422 Unprocessable Entity. Error is ignored and the execution continues.
    {"message":"ERF42-9911 [Foreman::Exception]: Host is pending for Build"}

To this, which is preferable:

    app03.dev.example.com: During the fact upload the server responded with: 422 Unprocessable Entity. Error is ignored and the execution continues.
    {"message":"ERF42-9911 [Foreman::Exception]: Host is pending for Build"}
@antaflos
Copy link
Contributor Author

The test failures seem unrelated to the changes in this PR.

@mmoll mmoll merged commit f7e62c4 into theforeman:master Apr 5, 2019
@mmoll
Copy link
Contributor

mmoll commented Apr 5, 2019

merged, thanks @antaflos!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants