@@ -139,7 +139,7 @@ func getVolumeByID(volumeID string) (hostPathVolume, error) {
139
139
if hostPathVol , ok := hostPathVolumes [volumeID ]; ok {
140
140
return hostPathVol , nil
141
141
}
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 )
143
143
}
144
144
145
145
func getVolumeByName (volName string ) (hostPathVolume , error ) {
@@ -148,7 +148,7 @@ func getVolumeByName(volName string) (hostPathVolume, error) {
148
148
return hostPathVol , nil
149
149
}
150
150
}
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 )
152
152
}
153
153
154
154
func getSnapshotByName (name string ) (hostPathSnapshot , error ) {
@@ -157,10 +157,10 @@ func getSnapshotByName(name string) (hostPathSnapshot, error) {
157
157
return snapshot , nil
158
158
}
159
159
}
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 )
161
161
}
162
162
163
- // getVolumePath returs the canonical path for hostpath volume
163
+ // getVolumePath returns the canonical path for hostpath volume
164
164
func getVolumePath (volID string ) string {
165
165
return filepath .Join (dataRoot , volID )
166
166
}
0 commit comments