diff --git a/pkg/asset/machines/libvirt/machines.go b/pkg/asset/machines/libvirt/machines.go index 2a8fb3dccaf..7dfe4c92c25 100644 --- a/pkg/asset/machines/libvirt/machines.go +++ b/pkg/asset/machines/libvirt/machines.go @@ -17,7 +17,8 @@ func Machines(config *types.InstallConfig, pool *types.MachinePool, role, userDa if configPlatform := config.Platform.Name(); configPlatform != types.PlatformNameLibvirt { return nil, fmt.Errorf("non-Libvirt configuration: %q", configPlatform) } - if poolPlatform := pool.Platform.Name(); poolPlatform != types.PlatformNameLibvirt { + // FIXME: empty is a valid case for Libvirt as we don't use it. + if poolPlatform := pool.Platform.Name(); poolPlatform != "" && poolPlatform != types.PlatformNameLibvirt { return nil, fmt.Errorf("non-Libvirt machine-pool: %q", poolPlatform) } clustername := config.ObjectMeta.Name diff --git a/pkg/asset/machines/libvirt/machinesets.go b/pkg/asset/machines/libvirt/machinesets.go index 953a6100eb8..baea64e0b54 100644 --- a/pkg/asset/machines/libvirt/machinesets.go +++ b/pkg/asset/machines/libvirt/machinesets.go @@ -17,7 +17,8 @@ func MachineSets(config *types.InstallConfig, pool *types.MachinePool, role, use if configPlatform := config.Platform.Name(); configPlatform != types.PlatformNameLibvirt { return nil, fmt.Errorf("non-Libvirt configuration: %q", configPlatform) } - if poolPlatform := pool.Platform.Name(); poolPlatform != types.PlatformNameLibvirt { + // FIXME: empty is a valid case for Libvirt as we don't use it. + if poolPlatform := pool.Platform.Name(); poolPlatform != "" && poolPlatform != types.PlatformNameLibvirt { return nil, fmt.Errorf("non-Libvirt machine-pool: %q", poolPlatform) } clustername := config.ObjectMeta.Name