Skip to content

Commit

Permalink
fix use of service field when newer name/status/state fields are not …
Browse files Browse the repository at this point in the history
…available
  • Loading branch information
nullfunc committed Jul 3, 2024
1 parent 0d34c91 commit 3d25299
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pkg/cli/subscribe.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func Subscribe(ctx context.Context, client client.Client, services []string) (<-
}

servInfo := msg.GetService()
if subStatus.Name != "" && (servInfo != nil && servInfo.Service != nil) {
if subStatus.Name == "" && (servInfo != nil && servInfo.Service != nil) {
subStatus.Name = servInfo.Service.Name
subStatus.Status = servInfo.Status
subStatus.State = servInfo.State
Expand Down

0 comments on commit 3d25299

Please sign in to comment.