Skip to content

Commit

Permalink
PMM-13502 Fix for pmm-admin remove service. (#3287)
Browse files Browse the repository at this point in the history
  • Loading branch information
BupycHuk authored Nov 7, 2024
1 parent 4266c88 commit c2b8138
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/commands/management/remove.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func (cmd *RemoveCommand) RunCmd() (commands.Result, error) {
case len(servicesRes.Payload.External) == 1:
serviceID = servicesRes.Payload.External[0].ServiceID
}
if cmd.ServiceID == "" {
if serviceID == "" {
//nolint:revive,golint
return nil, errors.New(`We could not find a service associated with the local node. Please provide "Service ID" or "Service name".`)
}
Expand Down

0 comments on commit c2b8138

Please sign in to comment.