@@ -139,7 +139,7 @@ func getVolumeByID(volumeID string) (hostPathVolume, error) {
139139 if hostPathVol , ok := hostPathVolumes [volumeID ]; ok {
140140 return hostPathVol , nil
141141 }
142- return hostPathVolume {}, fmt .Errorf ("volume id %s does not exit in the volumes list" , volumeID )
142+ return hostPathVolume {}, fmt .Errorf ("volume id %s does not exist in the volumes list" , volumeID )
143143}
144144
145145func getVolumeByName (volName string ) (hostPathVolume , error ) {
@@ -148,7 +148,7 @@ func getVolumeByName(volName string) (hostPathVolume, error) {
148148 return hostPathVol , nil
149149 }
150150 }
151- return hostPathVolume {}, fmt .Errorf ("volume name %s does not exit in the volumes list" , volName )
151+ return hostPathVolume {}, fmt .Errorf ("volume name %s does not exist in the volumes list" , volName )
152152}
153153
154154func getSnapshotByName (name string ) (hostPathSnapshot , error ) {
@@ -157,10 +157,10 @@ func getSnapshotByName(name string) (hostPathSnapshot, error) {
157157 return snapshot , nil
158158 }
159159 }
160- return hostPathSnapshot {}, fmt .Errorf ("snapshot name %s does not exit in the snapshots list" , name )
160+ return hostPathSnapshot {}, fmt .Errorf ("snapshot name %s does not exist in the snapshots list" , name )
161161}
162162
163- // getVolumePath returs the canonical path for hostpath volume
163+ // getVolumePath returns the canonical path for hostpath volume
164164func getVolumePath (volID string ) string {
165165 return filepath .Join (dataRoot , volID )
166166}
0 commit comments