Actually use the safeFormatAndMounter...

This commit is contained in:
Brendan Burns 2015-02-06 17:01:05 -08:00
parent e9f74de68d
commit cc7279f6a8

View File

@ -87,7 +87,7 @@ func (util *GCEDiskUtil) AttachDisk(pd *gcePersistentDisk) error {
}
}
if !mountpoint {
err = pd.mounter.Mount(devicePath, globalPDPath, pd.fsType, flags, "")
err = pd.diskMounter.Mount(devicePath, globalPDPath, pd.fsType, flags, "")
if err != nil {
os.Remove(globalPDPath)
return err