Files
troubleshoot/examples/preflight/host/timezone.yaml
John Murphy c119a16235 Fixed bugs introduced by handling multiple results in host preflights (#383)
Fixed bug caused by host preflights not handling empty when clauses, this cropped up because we now handle multiple host preflight results. Also expanded test coverage and added integration test script.
2021-07-08 11:08:53 -05:00

17 lines
355 B
YAML

apiVersion: troubleshoot.sh/v1beta2
kind: HostPreflight
metadata:
name: timezone
spec:
collectors:
- time: {}
analyzers:
- time:
outcomes:
- pass:
when: "timezone == UTC"
message: Timezone is UTC
- fail:
when: "timezone != UTC"
message: Timezone is not UTC