mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-07-18 04:54:54 +00:00
Merge pull request #136975 from sunya-ch/follow-up-rename
DRA: Optimize SharedDeviceID.GetDeviceID function
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user