Skip to content

Commit

Permalink
lxd/device: Name parameters of the same type in DiskParseRBDFormat
Browse files Browse the repository at this point in the history
  • Loading branch information
hamistao committed May 23, 2024
1 parent aadc72e commit f9e0f2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lxd/device/device_utils_disk.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const RBDFormatPrefix = "rbd"
const RBDFormatSeparator = " "

// DiskParseRBDFormat parses an rbd formatted string, and returns the pool name, volume name, and list of options.
func DiskParseRBDFormat(rbd string) (string, string, []string, error) {
func DiskParseRBDFormat(rbd string) (poolName string, volumeName string, options []string, err error) {
if !strings.HasPrefix(rbd, fmt.Sprintf("%s%s", RBDFormatPrefix, RBDFormatSeparator)) {
return "", "", nil, fmt.Errorf("Invalid rbd format, missing prefix")
}
Expand Down

0 comments on commit f9e0f2c

Please sign in to comment.