mirror of
https://github.com/siderolabs/omni.git
synced 2026-01-20 18:31:02 +01:00
When a new machine is added to omni, we were checking whether the machine is in maintenance mode by using `machinestatus.stage` under `MachineStatusSnapshot` resource. However, at this point MachineStatusSnapshot doesn't exist yet. Fixed the condition to also check existence of MachineStatusSnapshot as well as machine status stage. Signed-off-by: Oguz Kilcan <oguz.kilcan@siderolabs.com>