(failure RunFailure)
| 2718 | } |
| 2719 | |
| 2720 | func normalizeRunFailure(failure RunFailure) (RunFailure, error) { |
| 2721 | normalized := failure |
| 2722 | normalized.Error = strings.TrimSpace(normalized.Error) |
| 2723 | normalized.Metadata = normalizeRawJSON(normalized.Metadata) |
| 2724 | if err := normalized.Validate("run_failure"); err != nil { |
| 2725 | return RunFailure{}, err |
| 2726 | } |
| 2727 | return normalized, nil |
| 2728 | } |
| 2729 | |
| 2730 | func normalizeRunBootRecovery(recovery RunBootRecovery) (RunBootRecovery, error) { |
| 2731 | normalized := recovery |
no test coverage detected