Skip to content

Commit

Permalink
lxd/storage/connectors/iscsi: Replace sprintf with concat
Browse files Browse the repository at this point in the history
Signed-off-by: Din Music <[email protected]>
  • Loading branch information
MusicDin committed Feb 4, 2025
1 parent 6a297f9 commit 91cecfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lxd/storage/connectors/connector_iscsi.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func (c *connectorISCSI) Version() (string, error) {

fields := strings.Split(strings.TrimSpace(out), " ")
if strings.HasPrefix(out, "iscsiadm version ") && len(fields) > 2 {
version := fmt.Sprintf("%s (iscsiadm)", fields[2])
version := fields[2] + " (iscsiadm)"
return version, nil
}

Expand Down

0 comments on commit 91cecfa

Please sign in to comment.