@@ -148,7 +148,7 @@ func waitForPathToExist(devicePath *string, maxRetries, intervalSeconds int, dev
148
148
149
149
func waitForPathToExistImpl (devicePath * string , maxRetries , intervalSeconds int , deviceTransport string , osStat statFunc , filepathGlob globFunc ) (bool , error ) {
150
150
if devicePath == nil {
151
- return false , fmt .Errorf ("Unable to check unspecified devicePath" )
151
+ return false , fmt .Errorf ("unable to check unspecified devicePath" )
152
152
}
153
153
154
154
var err error
@@ -226,7 +226,7 @@ func getMultipathDisk(path string) (string, error) {
226
226
}
227
227
}
228
228
debug .Printf ("Couldn't find dm-* path for path: %s, found non dm-* path: %s" , path , devicePath )
229
- return "" , fmt .Errorf ("Couldn 't find dm-* path for path: %s, found non dm-* path: %s" , path , devicePath )
229
+ return "" , fmt .Errorf ("couldn 't find dm-* path for path: %s, found non dm-* path: %s" , path , devicePath )
230
230
}
231
231
232
232
// Connect attempts to connect a volume to this node using the provided Connector info
@@ -240,7 +240,7 @@ func Connect(c Connector) (string, error) {
240
240
}
241
241
242
242
if c .RetryCount < 0 || c .CheckInterval < 0 {
243
- return "" , fmt .Errorf ("Invalid RetryCount and CheckInterval combination, both must be positive integers. " +
243
+ return "" , fmt .Errorf ("invalid RetryCount and CheckInterval combination, both must be positive integers. " +
244
244
"RetryCount: %d, CheckInterval: %d" , c .RetryCount , c .CheckInterval )
245
245
}
246
246
var devicePaths []string
@@ -318,7 +318,7 @@ func Connect(c Connector) (string, error) {
318
318
devicePaths = append (devicePaths , devicePath )
319
319
continue
320
320
} else if err != nil {
321
- lastErr = fmt .Errorf ("Couldn 't attach disk, err: %v" , err )
321
+ lastErr = fmt .Errorf ("couldn 't attach disk, err: %v" , err )
322
322
}
323
323
}
324
324
0 commit comments