|
|
|
@ -96,7 +96,7 @@ class volume_mount(cryptobox.plugins.base.CryptoBoxPlugin):
|
|
|
|
|
self.cbox.log.info("the device (%s) is already mounted" % self.device)
|
|
|
|
|
return "volume_status"
|
|
|
|
|
if not pw:
|
|
|
|
|
self.hdf["Data.Warning"] = "EmptyPassword"
|
|
|
|
|
self.hdf["Data.Warning"] = "Plugins.volume_mount.EmptyPassword"
|
|
|
|
|
self.cbox.log.info("no password was supplied for mounting of device: '%s'" \
|
|
|
|
|
% self.device)
|
|
|
|
|
return "volume_status"
|
|
|
|
@ -125,7 +125,7 @@ class volume_mount(cryptobox.plugins.base.CryptoBoxPlugin):
|
|
|
|
|
try:
|
|
|
|
|
self.container.umount()
|
|
|
|
|
except CBUmountError, err_msg:
|
|
|
|
|
self.hdf["Data.Warning"] = "UmountFailed"
|
|
|
|
|
self.hdf["Data.Warning"] = "Plugins.volume_mount.UmountFailed"
|
|
|
|
|
self.cbox.log.warn("could not umount the volume (%s): %s" \
|
|
|
|
|
% (self.device, err_msg))
|
|
|
|
|
return "volume_status"
|
|
|
|
|