Skip to content

Commit

Permalink
lxd/storage/connectors/nvme: Don't use deprecated RunCommand
Browse files Browse the repository at this point in the history
Signed-off-by: Julian Pelizäus <[email protected]>
  • Loading branch information
roosterfish committed Feb 3, 2025
1 parent 2724da0 commit ac8c852
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lxd/storage/connectors/connector_nvme.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func (c *connectorNVMe) Type() string {
// Version returns the version of the NVMe CLI.
func (c *connectorNVMe) Version() (string, error) {
// Detect and record the version of the NVMe CLI.
out, err := shared.RunCommand("nvme", "version")
out, err := shared.RunCommandContext(context.Background(), "nvme", "version")
if err != nil {
return "", fmt.Errorf("Failed to get nvme-cli version: %w", err)
}
Expand Down

0 comments on commit ac8c852

Please sign in to comment.