Skip to content
Snippets Groups Projects
Commit 49c0210c authored by Fabian Seidl's avatar Fabian Seidl
Browse files

removed possibly unneccessary device copy

parent 3fe56d9a
No related branches found
No related tags found
3 merge requests!376Add additional example application hostname-checker,!343Add basic application framework and example application to show interaction between events an NBI,!342Resolve "Add an option to send gNMI Subscribe requests via SBI"
Pipeline #109045 passed
This commit is part of merge request !342. Comments created here will be created in the context of that merge request.
...@@ -278,15 +278,7 @@ func (pnd *pndImplementation) GetDevice(identifier string) (device.Device, error ...@@ -278,15 +278,7 @@ func (pnd *pndImplementation) GetDevice(identifier string) (device.Device, error
return nil, err return nil, err
} }
// TODO: We should investigate why we copy the device here. return d, nil
copiedDevice := &CommonDevice{
name: d.Name(),
UUID: d.ID(),
Model: d.GetModel(),
sbi: d.SBI(),
}
return copiedDevice, nil
} }
// RemoveDevice removes a device from the PND // RemoveDevice removes a device from the PND
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment