Open tabraham opened 3 years ago
On Tue, Aug 31, 2021 at 03:44:56PM +0000, T.M. Abraham wrote:
The drac5 external plugin outputs empty error lines on every instance it's called due to the handling in the trap on exit. We should prevent empty error lines by checking if there's content to output.
Also, it considers all output from the racadm command it uses as an error. However, it's output can indicate success, so we shouldn't report it as an error. Considering it debug is probably more appropriate.
I'd say that either is suboptimal. Is there a meaningful exit code from racadm? Otherwise, we could try to match the output for error/warning.
This is a more significant change. The trap isn't really needed since all use of the temporary file is limited to sshlogin function. It makes changes to log as an error only when racadm returns an error code (non-zero) and logs as debug otherwise
The drac5 external plugin outputs empty error lines on every instance it's called due to the handling in the trap on exit. We should prevent empty error lines by checking if there's content to output.
Also, it considers all output from the racadm command it uses as an error. However, it's output can indicate success, so we shouldn't report it as an error. Considering it debug is probably more appropriate.