From 779118147e68c12329039ebaafba01bcd2e06edc Mon Sep 17 00:00:00 2001 From: Evan Hazlett Date: Mon, 23 Feb 2015 14:54:31 -0500 Subject: [PATCH] do not error with no active host for ls Signed-off-by: Evan Hazlett --- commands.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/commands.go b/commands.go index 316b9bc8e5..4c036368a3 100644 --- a/commands.go +++ b/commands.go @@ -395,11 +395,6 @@ func cmdLs(c *cli.Context) { for _, host := range hostList { if !quiet { - tmpHost, err := store.GetActive() - if err != nil { - log.Errorf("There's a problem with the active host: %s", err) - } - if host.SwarmMaster { swarmMasters[host.SwarmDiscovery] = host.Name } @@ -408,10 +403,6 @@ func cmdLs(c *cli.Context) { swarmInfo[host.Name] = host.SwarmDiscovery } - if tmpHost == nil { - log.Errorf("There's a problem finding the active host") - } - go getHostState(host, *store, hostListItems) } else { fmt.Fprintf(w, "%s\n", host.Name)