Skip to content

Commit

Permalink
Merge branch 'master' into graceful-shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
robertvolkmann authored Nov 9, 2023
2 parents ece0ed9 + 1d22706 commit de9a5b5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions cmd/internal/core/phone-home.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ func (c *Core) send(ctx context.Context, event *v1.EventServiceSendRequest) (*v1
return nil, err
}
if s != nil {
c.log.Info("event", "send", s.Events, "failed", s.Failed)
c.log.Info("event", "send", s.GetEvents(), "failed", s.GetFailed())
}
return s, err
}
Expand All @@ -135,7 +135,7 @@ func (c *Core) phoneHome(ctx context.Context, msgs []phoneHomeMessage) {
c.metrics.CountError("send-provisioning")
}
if s != nil {
c.log.Info("phonehome sent", "machines", s.Events)
c.log.Info("phonehome sent", "machines", s.GetEvents())
}
}

Expand Down
4 changes: 2 additions & 2 deletions cmd/internal/switcher/templates/template_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,10 @@ func renderToString(t *testing.T, tpl *template.Template, c *types.Conf) string
func readConf(t *testing.T, i string) types.Conf {
c := types.Conf{}
b, err := os.ReadFile(i)
require.Nil(t, err, "unexpected error when reading testing input")
require.NoError(t, err, "unexpected error when reading testing input")

err = yaml.Unmarshal(b, &c)
require.Nil(t, err, "unexpected error when unmarshalling testing input")
require.NoError(t, err, "unexpected error when unmarshalling testing input")
return c
}

Expand Down
2 changes: 1 addition & 1 deletion cmd/internal/switcher/types/conf_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func TestFillVLANIDs(t *testing.T) {
},
}
err := c.FillVLANIDs(m)
require.Nil(t, err)
require.NoError(t, err)
require.Equal(t, uint16(1001), c.Ports.Vrfs["101001"].VLANID)
require.Equal(t, uint16(1002), c.Ports.Vrfs["101002"].VLANID)
require.Equal(t, uint16(1003), c.Ports.Vrfs["101003"].VLANID)
Expand Down

0 comments on commit de9a5b5

Please sign in to comment.