Skip to content

Commit

Permalink
Merge pull request #852 from stgraber/main
Browse files Browse the repository at this point in the history
incusd/device/unix: Run gofmt
  • Loading branch information
stgraber authored May 7, 2024
2 parents 525c23f + 8d751e3 commit ee0ebc7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions internal/server/device/unix_hotplug.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func (d *unixHotplug) validateConfig(instConf instance.ConfigReader) error {
// ---
// type: string
// shortdesc: The vendor ID of the USB device
"vendorid": validate.Optional(validate.IsDeviceID),
"vendorid": validate.Optional(validate.IsDeviceID),

// gendoc:generate(entity=devices, group=unix-hotplug, key=productid)
//
Expand All @@ -65,31 +65,31 @@ func (d *unixHotplug) validateConfig(instConf instance.ConfigReader) error {
// type: int
// default: 0
// shortdesc: UID of the device owner in the instance
"uid": unixValidUserID,
"uid": unixValidUserID,

// gendoc:generate(entity=devices, group=unix-hotplug, key=gid)
//
// ---
// type: int
// default: 0
// shortdesc: GID of the device owner in the instance
"gid": unixValidUserID,
"gid": unixValidUserID,

// gendoc:generate(entity=devices, group=unix-hotplug, key=mode)
//
// ---
// type: int
// default: 0660
// shortdesc: Mode of the device in the instance
"mode": unixValidOctalFileMode,
"mode": unixValidOctalFileMode,

// gendoc:generate(entity=devices, group=unix-hotplug, key=required)
//
// ---
// type: bool
// default: true
// shortdesc: Whether this device is required to start the instance
"required": validate.Optional(validate.IsBool),
"required": validate.Optional(validate.IsBool),
}

err := d.config.Validate(rules)
Expand Down

0 comments on commit ee0ebc7

Please sign in to comment.