Utku Ozdemir 2bb245aa38 fix: do not register storage metric collectors if it is not enabled
If discovery service storage is not enabled, we were still wrongly registering it as prometheus metrics collector, because the nil check was done against the interface. It had to be done on the concrete type instead.

Signed-off-by: Utku Ozdemir <utku.ozdemir@siderolabs.com>
2024-11-28 13:34:40 +01:00
..