Skip to content

Commit 54d6ca6

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Fix type error on call to mount device" into stable/stein
2 parents 1768910 + 8371073 commit 54d6ca6

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

nova/tests/unit/virt/disk/mount/test_nbd.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,8 @@ def fake_returns_true(*args, **kwargs):
260260
mount.map_dev = fake_returns_true
261261

262262
self.assertFalse(mount.do_mount())
263+
mock_mount.assert_called_once_with(
264+
None, None, tempdir, None)
263265

264266
@mock.patch('nova.privsep.fs.nbd_connect')
265267
@mock.patch('nova.privsep.fs.nbd_disconnect')

nova/virt/disk/mount/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ def mnt_dev(self):
248248
LOG.debug("Mount %(dev)s on %(dir)s",
249249
{'dev': self.mapped_device, 'dir': self.mount_dir})
250250
out, err = nova.privsep.fs.mount(None, self.mapped_device,
251-
self.mount_dir)
251+
self.mount_dir, None)
252252
if err:
253253
self.error = _('Failed to mount filesystem: %s') % err
254254
LOG.debug(self.error)

0 commit comments

Comments
 (0)