Add certname to error output in external_node_v2.rb
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"}
Add certname to error output in external_node_v2.rb
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:
To this, which is preferable: