Apply latest changes from copy-and-pasted gce_pd

This commit is contained in:
Justin Santa Barbara
2015-04-07 15:35:43 -07:00
parent 9711e771c5
commit a20484b5ed
3 changed files with 8 additions and 8 deletions

View File

@@ -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 {