Skip to content

Commit

Permalink
fix deploy_test by checking apply job is not null
Browse files Browse the repository at this point in the history
  • Loading branch information
tlin4194 committed Oct 30, 2024
1 parent 5926b53 commit eb843ba
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server/neptune/workflows/internal/deploy/terraform/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ func (n *StateReceiver) Receive(ctx workflow.Context, c workflow.ReceiveChannel,
}
}

if workflowState.Apply.Status == state.WaitingJobStatus && !reflect.ValueOf(workflowState.Apply.OnWaitingActions).IsZero() {
if workflowState.Apply != nil &&
workflowState.Apply.Status == state.WaitingJobStatus &&
!reflect.ValueOf(workflowState.Apply.OnWaitingActions).IsZero() {
// update queue with information about current deployment pending confirm/reject action
infos := n.Queue.GetOrderedMergedItems()

Expand Down

0 comments on commit eb843ba

Please sign in to comment.