diff --git a/types/conf.go b/types/conf.go index f1d827e41..cdd674ac5 100644 --- a/types/conf.go +++ b/types/conf.go @@ -272,6 +272,7 @@ func delegateAddDeviceID(inBytes []byte, deviceID string) ([]byte, error) { } // Inject deviceID rawConfig["deviceID"] = deviceID + rawConfig["pciBusID"] = deviceID configBytes, err := json.Marshal(rawConfig) if err != nil { return nil, logging.Errorf("delegateAddDeviceID: failed to re-marshal Spec.Config: %v", err) @@ -306,6 +307,7 @@ func addDeviceIDInConfList(inBytes []byte, deviceID string) ([]byte, error) { } // Inject deviceID firstPlugin["deviceID"] = deviceID + firstPlugin["pciBusID"] = deviceID configBytes, err := json.Marshal(rawConfig) if err != nil {