@@ -195,14 +195,14 @@ func (r *snapshotReactor) React(action core.Action) (handled bool, ret runtime.O
195195 // check the content does not exist
196196 _ , found := r .contents [content .Name ]
197197 if found {
198- return true , nil , fmt .Errorf ("Cannot create content %s: content already exists" , content .Name )
198+ return true , nil , fmt .Errorf ("cannot create content %s: content already exists" , content .Name )
199199 }
200200
201201 // Store the updated object to appropriate places.
202202 r .contents [content .Name ] = content
203203 r .changedObjects = append (r .changedObjects , content )
204204 r .changedSinceLastSync ++
205- glog .V (4 ).Infof ("created content %s" , content .Name )
205+ glog .V (5 ).Infof ("created content %s" , content .Name )
206206 return true , content , nil
207207
208208 case action .Matches ("update" , "volumesnapshotcontents" ):
@@ -221,7 +221,7 @@ func (r *snapshotReactor) React(action core.Action) (handled bool, ret runtime.O
221221 content = content .DeepCopy ()
222222 content .ResourceVersion = strconv .Itoa (storedVer + 1 )
223223 } else {
224- return true , nil , fmt .Errorf ("Cannot update content %s: content not found" , content .Name )
224+ return true , nil , fmt .Errorf ("cannot update content %s: content not found" , content .Name )
225225 }
226226
227227 // Store the updated object to appropriate places.
@@ -247,7 +247,7 @@ func (r *snapshotReactor) React(action core.Action) (handled bool, ret runtime.O
247247 snapshot = snapshot .DeepCopy ()
248248 snapshot .ResourceVersion = strconv .Itoa (storedVer + 1 )
249249 } else {
250- return true , nil , fmt .Errorf ("Cannot update snapshot %s: snapshot not found" , snapshot .Name )
250+ return true , nil , fmt .Errorf ("cannot update snapshot %s: snapshot not found" , snapshot .Name )
251251 }
252252
253253 // Store the updated object to appropriate places.
@@ -265,7 +265,7 @@ func (r *snapshotReactor) React(action core.Action) (handled bool, ret runtime.O
265265 return true , content , nil
266266 } else {
267267 glog .V (4 ).Infof ("GetVolume: content %s not found" , name )
268- return true , nil , fmt .Errorf ("Cannot find content %s" , name )
268+ return true , nil , fmt .Errorf ("cannot find content %s" , name )
269269 }
270270
271271 case action .Matches ("get" , "volumesnapshots" ):
@@ -276,7 +276,7 @@ func (r *snapshotReactor) React(action core.Action) (handled bool, ret runtime.O
276276 return true , snapshot , nil
277277 } else {
278278 glog .V (4 ).Infof ("GetSnapshot: content %s not found" , name )
279- return true , nil , fmt .Errorf ("Cannot find snapshot %s" , name )
279+ return true , nil , fmt .Errorf ("cannot find snapshot %s" , name )
280280 }
281281
282282 case action .Matches ("delete" , "volumesnapshotcontents" ):
@@ -288,7 +288,7 @@ func (r *snapshotReactor) React(action core.Action) (handled bool, ret runtime.O
288288 r .changedSinceLastSync ++
289289 return true , nil , nil
290290 } else {
291- return true , nil , fmt .Errorf ("Cannot delete content %s: not found" , name )
291+ return true , nil , fmt .Errorf ("cannot delete content %s: not found" , name )
292292 }
293293
294294 case action .Matches ("delete" , "volumesnapshots" ):
@@ -300,7 +300,7 @@ func (r *snapshotReactor) React(action core.Action) (handled bool, ret runtime.O
300300 r .changedSinceLastSync ++
301301 return true , nil , nil
302302 } else {
303- return true , nil , fmt .Errorf ("Cannot delete snapshot %s: not found" , name )
303+ return true , nil , fmt .Errorf ("cannot delete snapshot %s: not found" , name )
304304 }
305305
306306 case action .Matches ("get" , "persistentvolumes" ):
@@ -311,7 +311,7 @@ func (r *snapshotReactor) React(action core.Action) (handled bool, ret runtime.O
311311 return true , volume , nil
312312 } else {
313313 glog .V (4 ).Infof ("GetVolume: volume %s not found" , name )
314- return true , nil , fmt .Errorf ("Cannot find volume %s" , name )
314+ return true , nil , fmt .Errorf ("cannot find volume %s" , name )
315315 }
316316
317317 case action .Matches ("get" , "persistentvolumeclaims" ):
@@ -322,7 +322,7 @@ func (r *snapshotReactor) React(action core.Action) (handled bool, ret runtime.O
322322 return true , claim , nil
323323 } else {
324324 glog .V (4 ).Infof ("GetClaim: claim %s not found" , name )
325- return true , nil , fmt .Errorf ("Cannot find claim %s" , name )
325+ return true , nil , fmt .Errorf ("cannot find claim %s" , name )
326326 }
327327
328328 case action .Matches ("get" , "storageclasses" ):
@@ -333,7 +333,7 @@ func (r *snapshotReactor) React(action core.Action) (handled bool, ret runtime.O
333333 return true , storageClass , nil
334334 } else {
335335 glog .V (4 ).Infof ("GetStorageClass: storageClass %s not found" , name )
336- return true , nil , fmt .Errorf ("Cannot find storageClass %s" , name )
336+ return true , nil , fmt .Errorf ("cannot find storageClass %s" , name )
337337 }
338338
339339 case action .Matches ("get" , "secrets" ):
@@ -344,7 +344,7 @@ func (r *snapshotReactor) React(action core.Action) (handled bool, ret runtime.O
344344 return true , secret , nil
345345 } else {
346346 glog .V (4 ).Infof ("GetSecret: secret %s not found" , name )
347- return true , nil , fmt .Errorf ("Cannot find secret %s" , name )
347+ return true , nil , fmt .Errorf ("cannot find secret %s" , name )
348348 }
349349 }
350350
0 commit comments