mirror of https://github.com/docker/docs.git
do not error with no active host for ls
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
This commit is contained in:
parent
13b66e7956
commit
779118147e
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue