Skip to content

Commit

Permalink
nolint (temp)
Browse files Browse the repository at this point in the history
  • Loading branch information
maximpertsov committed Sep 24, 2024
1 parent 08db841 commit 0d5ee70
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions resource/graph_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -467,6 +467,7 @@ func (w *GraphNode) replace(other *GraphNode) error {
}

func (w *GraphNode) canTransitionTo(state NodeState) bool {
//nolint // TODO add NodeStateDisconnected if agreed to
switch w.state {
case NodeStateUnknown:
case NodeStateUnconfigured:
Expand Down
1 change: 1 addition & 0 deletions robot/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,7 @@ func (s *Server) GetMachineStatus(ctx context.Context, _ *pb.GetMachineStatusReq
Revision: resStatus.Revision,
}

//nolint // TODO add NodeStateDisconnected if agreed to
switch resStatus.State {
case resource.NodeStateUnknown:
s.robot.Logger().CErrorw(ctx, "resource in an unknown state", "resource", resStatus.Name.String())
Expand Down

0 comments on commit 0d5ee70

Please sign in to comment.