mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 14:37:00 +00:00
Actually use the safeFormatAndMounter...
This commit is contained in:
parent
e9f74de68d
commit
cc7279f6a8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user