diff --git a/pkg/platforms/openstack/openstack.go b/pkg/platforms/openstack/openstack.go index b86e079ca2..6f7721838d 100644 --- a/pkg/platforms/openstack/openstack.go +++ b/pkg/platforms/openstack/openstack.go @@ -18,6 +18,7 @@ import ( sriovnetworkv1 "github.com/k8snetworkplumbingwg/sriov-network-operator/api/v1" "github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/consts" "github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/host" + "github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/utils" ) const ( @@ -103,7 +104,11 @@ type OSPDeviceInfo struct { } func New() OpenstackInterface { - return &openstackContext{} + utilsHelper := utils.New() + hostManager := host.NewHostManager(utilsHelper) + return &openstackContext{ + hostManager: hostManager, + } } // GetOpenstackData gets the metadata and network_data