(recovery RunBootRecovery)
| 2728 | } |
| 2729 | |
| 2730 | func normalizeRunBootRecovery(recovery RunBootRecovery) (RunBootRecovery, error) { |
| 2731 | normalized := recovery |
| 2732 | normalized.Action = normalized.Action.Normalize() |
| 2733 | normalized.Reason = strings.TrimSpace(normalized.Reason) |
| 2734 | normalized.SessionState = strings.TrimSpace(normalized.SessionState) |
| 2735 | normalized.Classification = strings.TrimSpace(normalized.Classification) |
| 2736 | normalized.Detail = strings.TrimSpace(normalized.Detail) |
| 2737 | if err := normalized.Validate("run_boot_recovery"); err != nil { |
| 2738 | return RunBootRecovery{}, err |
| 2739 | } |
| 2740 | return normalized, nil |
| 2741 | } |
| 2742 | |
| 2743 | func requireLifecycleIdempotency(actor ActorContext, key string, path string) error { |
| 2744 | if actor.Actor.Kind.Normalize() == ActorKindHuman { |
no test coverage detected