tests, Fix SRIOV UpdateCDIConfigMap panic
On SRIOV lane, we dont have CDI, nor CDI insecure registries
so we dont need to restore config of them,
else a panic of a nil ptr deref will occur.
Fixes:
@@ -4330,8 +4330,11 @@ func resetToDefaultConfig() {
}
UpdateKubeVirtConfigValueAndWait(KubeVirtDefaultConfig)
+
+ if HasCDI() {
UpdateCDIConfigMap(CDIInsecureRegistryConfig)
}
+}
type compare func(string, string) bool
