diff --git a/staging/src/k8s.io/dynamic-resource-allocation/structured/schedulerapi/types.go b/staging/src/k8s.io/dynamic-resource-allocation/structured/schedulerapi/types.go index a30424a8b1d..8e06e886ec1 100644 --- a/staging/src/k8s.io/dynamic-resource-allocation/structured/schedulerapi/types.go +++ b/staging/src/k8s.io/dynamic-resource-allocation/structured/schedulerapi/types.go @@ -59,7 +59,7 @@ func (d SharedDeviceID) String() string { } func (d SharedDeviceID) GetDeviceID() DeviceID { - return MakeDeviceID(d.Driver.String(), d.Pool.String(), d.Device.String()) + return DeviceID{d.Driver, d.Pool, d.Device} } // MakeSharedDeviceID creates a new SharedDeviceID from a DeviceID and share ID.