fixup! feat: backup revolution

This commit is contained in:
decentral1se 2024-01-12 17:07:37 +01:00
parent 9cab8b5e59
commit daeba70dac
Signed by: decentral1se
GPG Key ID: 03789458B3D0C410
1 changed files with 2 additions and 1 deletions

View File

@ -16,7 +16,8 @@ import (
// GetService retrieves a service container based on a label. If prompt is true
// and the retrievd count of service containers does not match 1, then a prompt
// is presented to let the user choose. A count of 0 is handled gracefully.
// is presented to let the user choose. An error is returned when no service is
// found.
func GetServiceByLabel(c context.Context, cl *client.Client, label string, prompt bool) (swarm.Service, error) {
services, err := cl.ServiceList(c, types.ServiceListOptions{})
if err != nil {