diff options
-rw-r--r-- | lbup/targets.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lbup/targets.py b/lbup/targets.py index 6826d81..8b90188 100644 --- a/lbup/targets.py +++ b/lbup/targets.py @@ -315,8 +315,8 @@ class TargetSSHLVM(TargetSSH): then unmounts and destroys it at exit. """ with self._snapshot_lv(ssh, devnum) as lv_path: + self._paramiko_exec_cmd(ssh, 'mount -oro %s %s' % (lv_path, mount_path)) try: - self._paramiko_exec_cmd(ssh, 'mount -oro %s %s' % (lv_path, mount_path)) yield None finally: self._paramiko_exec_cmd(ssh, 'umount %s' % mount_path) |