| commit | d5f851bb477638436826adec756fe562db526865 | [log] [tgz] |
|---|---|---|
| author | Tim Windelschmidt <tim@monogon.tech> | Tue Apr 23 14:59:37 2024 +0200 |
| committer | Tim Windelschmidt <tim@monogon.tech> | Wed Apr 24 13:15:14 2024 +0000 |
| tree | d981b1c62d613b45fb55023da289098d7e377705 | |
| parent | 69fec522d5db79d07bb1f227c2ab39c57fdf2831 [diff] [blame] |
treewide: replace error comparisons and assertions with errors.Is Change-Id: Id2424eb155f2c6842c72c5fafd124d428ef901f2 Reviewed-on: https://review.monogon.dev/c/monogon/+/2994 Tested-by: Jenkins CI Reviewed-by: Serge Bazanski <serge@monogon.tech>
diff --git a/cloud/shepherd/provider/equinix/main.go b/cloud/shepherd/provider/equinix/main.go index 0060502..7faee9d 100644 --- a/cloud/shepherd/provider/equinix/main.go +++ b/cloud/shepherd/provider/equinix/main.go
@@ -2,6 +2,7 @@ import ( "context" + "errors" "flag" "fmt" "os" @@ -146,7 +147,7 @@ } }() go func() { - if err := c.WebugConfig.Start(ctx, conn); err != nil && err != ctx.Err() { + if err := c.WebugConfig.Start(ctx, conn); err != nil && !errors.Is(err, ctx.Err()) { klog.Exitf("Failed to start webug: %v", err) } }()