Skip to content

Commit

Permalink
Nil err message after waiting for VG (#411)
Browse files Browse the repository at this point in the history
Do not print the always-nil 'err' value when we timeout while waiting for
a VG to appear.

Signed-off-by: Dean Roehrich <[email protected]>
  • Loading branch information
roehrich-hpe authored Oct 31, 2024
1 parent 3f48984 commit ed4c94b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/blockdevice/lvm/volume_groups.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ func (vg *VolumeGroup) WaitForAppearance(ctx context.Context) (bool, error) {
}
}

return false, fmt.Errorf("timeout waiting for VG %w", err)
return false, fmt.Errorf("timeout waiting for VG")
}

func (vg *VolumeGroup) parseArgs(args string) (string, error) {
Expand Down

0 comments on commit ed4c94b

Please sign in to comment.