Skip to content

Commit

Permalink
Changes as requested
Browse files Browse the repository at this point in the history
  • Loading branch information
hanzei committed Dec 5, 2024
1 parent e89da7b commit 14b1bce
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions server/support_packet.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,17 @@ func (p *Plugin) GenerateSupportData(_ *plugin.Context) ([]*model.FileData, erro

connectedUserCount, err := p.userCount()
if err != nil {
result = multierror.Append(result, errors.Wrap(err, "Failed to get the number of connected users for Support Packet"))
result = multierror.Append(result, errors.Wrap(err, "failed to get the number of connected users for Support Packet"))
}

serverICount, cloudICount, err := p.instanceCount()
if err != nil {
result = multierror.Append(result, errors.Wrap(err, "Failed to get the number of instances for Support Packet"))
result = multierror.Append(result, errors.Wrap(err, "failed to get the number of instances for Support Packet"))
}

subscriptionCount, err := p.subscriptionCount()
if err != nil {
result = multierror.Append(result, errors.Wrap(err, "Failed to get the number of subscriptions for Support Packet"))
result = multierror.Append(result, errors.Wrap(err, "failed to get the number of subscriptions for Support Packet"))
}

diagnostics := SupportPacket{
Expand All @@ -49,7 +49,7 @@ func (p *Plugin) GenerateSupportData(_ *plugin.Context) ([]*model.FileData, erro
}
body, err := yaml.Marshal(diagnostics)
if err != nil {
return nil, errors.Wrap(err, "Failed to marshal diagnostics")
return nil, errors.Wrap(err, "failed to marshal diagnostics")
}

return []*model.FileData{{
Expand Down

0 comments on commit 14b1bce

Please sign in to comment.