@@ -48,7 +48,7 @@ import (
4848 "github.com/cobaltcore-dev/openstack-hypervisor-operator/internal/openstack"
4949)
5050
51- var errRequeue = fmt . Errorf ("requeue requested" )
51+ var errRequeue = errors . New ("requeue requested" )
5252
5353const (
5454 defaultWaitTime = 1 * time .Minute
@@ -465,7 +465,7 @@ func (r *OnboardingController) createOrGetTestServer(ctx context.Context, zone,
465465 }
466466
467467 if flavorRef == "" {
468- return nil , fmt . Errorf ("couldn't find flavor" )
468+ return nil , errors . New ("couldn't find flavor" )
469469 }
470470
471471 var imageRef string
@@ -488,7 +488,7 @@ func (r *OnboardingController) createOrGetTestServer(ctx context.Context, zone,
488488 }
489489
490490 if imageRef == "" {
491- return nil , fmt . Errorf ("couldn't find image" )
491+ return nil , errors . New ("couldn't find image" )
492492 }
493493
494494 falseVal := false
@@ -509,7 +509,7 @@ func (r *OnboardingController) createOrGetTestServer(ctx context.Context, zone,
509509 }
510510
511511 if networkRef == "" {
512- return nil , fmt . Errorf ("couldn't find network" )
512+ return nil , errors . New ("couldn't find network" )
513513 }
514514
515515 log .Info ("creating server" , "name" , serverName )
@@ -537,7 +537,7 @@ func (r *OnboardingController) createOrGetTestServer(ctx context.Context, zone,
537537 }
538538
539539 if server == nil {
540- return nil , fmt . Errorf ("server is nil" )
540+ return nil , errors . New ("server is nil" )
541541 }
542542 // Apparently the response doesn't contain the value
543543 server .Name = serverName
0 commit comments