Change Device field order in spec_linux.go, 'Path' should be top of the 'Type' field, according to the different of the config-linux.md, 'Path' field is the unique key.
Signed-off-by: LinZhinan(Zen Lin) <linzhinan@huawei.com>
This commit is contained in:
parent
da9240a712
commit
4661b21676
|
@ -167,10 +167,10 @@ type Resources struct {
|
|||
}
|
||||
|
||||
type Device struct {
|
||||
// Device type, block, char, etc.
|
||||
Type rune `json:"type"`
|
||||
// Path to the device.
|
||||
Path string `json:"path"`
|
||||
// Device type, block, char, etc.
|
||||
Type rune `json:"type"`
|
||||
// Major is the device's major number.
|
||||
Major int64 `json:"major"`
|
||||
// Minor is the device's minor number.
|
||||
|
|
Loading…
Reference in New Issue