From 8d751e3cfd92cab5bca0ef42bc3ac3ac44bba06c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Graber?= Date: Mon, 6 May 2024 22:24:37 -0400 Subject: [PATCH] incusd/device/unix: Run gofmt MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Graber --- internal/server/device/unix_hotplug.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/internal/server/device/unix_hotplug.go b/internal/server/device/unix_hotplug.go index ab45f585847..252d646cf31 100644 --- a/internal/server/device/unix_hotplug.go +++ b/internal/server/device/unix_hotplug.go @@ -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) // @@ -65,7 +65,7 @@ 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) // @@ -73,7 +73,7 @@ func (d *unixHotplug) validateConfig(instConf instance.ConfigReader) error { // 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) // @@ -81,7 +81,7 @@ func (d *unixHotplug) validateConfig(instConf instance.ConfigReader) error { // 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) // @@ -89,7 +89,7 @@ func (d *unixHotplug) validateConfig(instConf instance.ConfigReader) error { // 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)