mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
minor fixes in qemu.nbd_mount
This commit is contained in:
parent
9e862a4115
commit
a86407b23c
@ -9,6 +9,7 @@ are used here to build up kvm images.
|
||||
# Import python libs
|
||||
import os
|
||||
import glob
|
||||
import tempfile
|
||||
|
||||
# Import salt libs
|
||||
import salt.utils
|
||||
@ -70,7 +71,7 @@ def nbd_mount(image):
|
||||
tempfile.gettempdir(),
|
||||
'nbd',
|
||||
os.path.basename(nbd))
|
||||
m_pt = os.path.join(root, os.path.baseame(part))
|
||||
m_pt = os.path.join(root, os.path.basename(part))
|
||||
mnt = __salt__['mount.mount'](m_pt, part, True)
|
||||
if not mnt is True:
|
||||
continue
|
||||
|
Loading…
Reference in New Issue
Block a user