iscsi: format disk if no filesystem is found

Signed-off-by: Huamin Chen <hchen@redhat.com>
pull/6/head
Huamin Chen 2015-10-14 10:30:04 -04:00
parent 340cfcc284
commit 69a1f33dd5
1 changed files with 1 additions and 1 deletions

View File

@ -108,7 +108,7 @@ func (plugin *iscsiPlugin) newBuilderInternal(spec *volume.Spec, podUID types.UI
iqn: iscsi.IQN,
lun: lun,
manager: manager,
mounter: mounter,
mounter: &mount.SafeFormatAndMount{mounter, exec.New()},
plugin: plugin},
fsType: iscsi.FSType,
readOnly: readOnly,