fix: mem/mem_solaris.go:148:42: cannot use swapsCommandPath (type string) as type context.Context in argument to invoke.CommandWithContext - add ctx to call

pull/1142/head
maier 4 years ago
parent 87fc40cbd6
commit d644c6bef6

@ -146,7 +146,7 @@ func SwapDevicesWithContext(ctx context.Context) ([]*SwapDevice, error) {
if err != nil {
return nil, fmt.Errorf("could not find command %q: %w", swapsCommand, err)
}
output, err := invoke.CommandWithContext(swapsCommandPath, "-l")
output, err := invoke.CommandWithContext(ctx, swapsCommandPath, "-l")
if err != nil {
return nil, fmt.Errorf("could not execute %q: %w", swapsCommand, err)
}

Loading…
Cancel
Save