Project

General

Profile

« Previous | Next » 

Revision f7e62c4e

Added by Andreas Ntaflos about 5 years ago

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"}
  • added
  • modified
  • copied
  • renamed
  • deleted