Skip to content

Commit

Permalink
fix unit test
Browse files Browse the repository at this point in the history
Signed-off-by: hanenMizouni <[email protected]>
  • Loading branch information
outscale-hmi committed Oct 2, 2024
1 parent 05ba7e6 commit 2ddb57e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/cloud/devicemanager/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ func (d *deviceManager) getDeviceNamesInUse(instance osc.Vm) map[string]string {
name = strings.TrimPrefix(name, "/dev/xvd")

if len(name) < 1 || len(name) > 2 {
klog.Warningf("Unexpected BSU DeviceName: %q", blockDevice.DeviceName)
klog.Warningf("Unexpected BSU DeviceName: %q", *blockDevice.DeviceName)
}
inUse[name] = blockDevice.Bsu.GetVolumeId()
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/driver/luks_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func LuksClose(mounter Mounter, encryptedDeviceName string) error {
}

if err = mounter.Command("cryptsetup", "-v", "luksClose", encryptedDeviceName).Run(); err != nil {
klog.V(4).Info("error while closing luks device %v", encryptedDeviceName)
klog.V(4).Info("error while closing luks device", encryptedDeviceName)
return err
}

Expand Down

0 comments on commit 2ddb57e

Please sign in to comment.