Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix exception in subscribe #481

Merged
merged 3 commits into from
Jun 19, 2024
Merged

fix exception in subscribe #481

merged 3 commits into from
Jun 19, 2024

Conversation

nullfunc
Copy link
Contributor

@nullfunc nullfunc commented Jun 19, 2024

fix for #480 #479

@nullfunc nullfunc requested a review from lionello June 19, 2024 20:09
src/pkg/cli/subscribe.go Outdated Show resolved Hide resolved
@nullfunc nullfunc requested a review from lionello June 19, 2024 22:19
if err != nil {
term.Debugf("error subscribing to service status: %v", err)
return err
}

serviceStatus := make(map[string]string, len(serviceList))
for _, name := range serviceList {
serviceStatus[name] = string(cli.ServiceUnknown)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that name-normalization logic messes with my brain; are we getting normalized or non-normalized names? I think we should remove the normalizedServiceNameToServiceName map and just make sure we internally only use the normalized ones. We can normalize any strings the users passes to use, either on cmd line or in compose.

@lionello lionello merged commit 00dd8e5 into main Jun 19, 2024
5 checks passed
@lionello lionello deleted the eric-fix-exception-in-subscribe branch June 19, 2024 23:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants