[v2][solaris][mem] fix invoke ctx.

pull/1151/head
shirou 3 years ago
parent 4db4dc09a0
commit 7ae41c1f40

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

Loading…
Cancel
Save