Skip to content

Commit

Permalink
fix: correct relation steps
Browse files Browse the repository at this point in the history
  • Loading branch information
pancsta committed Feb 22, 2024
1 parent aba62ab commit b8331c9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/machine/resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ func (rr *DefaultRelationsResolver) GetTargetStates(
}
m.log(lvl, "[rel:remove] %s by %s", name, j(blockedBy))
if m.Is(S{name}) {
t.addSteps(newStep(name, "", TransitionStepTypeRemove, nil))
t.addSteps(newStep("", name, TransitionStepTypeRemove, nil))
} else {
t.addSteps(newStep(name, "", TransitionStepTypeNoSet, nil))
t.addSteps(newStep("", name, TransitionStepTypeNoSet, nil))
}
return false
})
Expand Down Expand Up @@ -179,7 +179,7 @@ func (rr *DefaultRelationsResolver) stateBlockedBy(
if !lo.Contains(state.Remove, blocked) {
continue
}
t.addSteps(newStep(blocked, blocking, TransitionStepTypeRelation,
t.addSteps(newStep(blocking, blocked, TransitionStepTypeRelation,
RelationRemove))
blockedBy = append(blockedBy, blocking)
}
Expand Down

0 comments on commit b8331c9

Please sign in to comment.