mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-12-06 00:05:52 +00:00
Apply latest changes from copy-and-pasted gce_pd
This commit is contained in:
@@ -65,7 +65,7 @@ func (util *AWSDiskUtil) AttachAndMountDisk(pd *awsElasticBlockStore, globalPDPa
|
||||
}
|
||||
|
||||
// Only mount the PD globally once.
|
||||
mountpoint, err := mount.IsMountPoint(globalPDPath)
|
||||
mountpoint, err := pd.mounter.IsMountPoint(globalPDPath)
|
||||
if err != nil {
|
||||
if os.IsNotExist(err) {
|
||||
if err := os.MkdirAll(globalPDPath, 0750); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user