@@ -15,7 +15,6 @@ import (
1515
1616 "github.com/docker/machine/libmachine"
1717 "github.com/docker/machine/libmachine/drivers"
18- "github.com/docker/machine/libmachine/engine"
1918 "github.com/docker/machine/libmachine/host"
2019 "github.com/docker/machine/libmachine/log"
2120 "github.com/docker/machine/libmachine/mcndockerclient"
@@ -32,24 +31,20 @@ const (
3231
3332var (
3433 headers = map [string ]string {
35- "Name" : "NAME" ,
36- "DriverName" : "DRIVER" ,
37- "State" : "STATE" ,
38- "EngineOptions" : "ENGINE_OPTIONS" ,
39- "Error" : "ERRORS" ,
40- "DockerVersion" : "DOCKER" ,
41- "ResponseTime" : "RESPONSE" ,
34+ "Name" : "NAME" ,
35+ "DriverName" : "DRIVER" ,
36+ "State" : "STATE" ,
37+ "Error" : "ERRORS" ,
38+ "ResponseTime" : "RESPONSE" ,
4239 }
4340)
4441
4542type HostListItem struct {
46- Name string
47- DriverName string
48- State state.State
49- EngineOptions * engine.Options
50- Error string
51- DockerVersion string
52- ResponseTime time.Duration
43+ Name string
44+ DriverName string
45+ State state.State
46+ Error string
47+ ResponseTime time.Duration
5348}
5449
5550// FilterOptions -
@@ -304,19 +299,12 @@ func attemptGetHostState(h *host.Host, stateQueryChan chan<- HostListItem) {
304299 hostError = ""
305300 }
306301
307- var engineOptions * engine.Options
308- if h .HostOptions != nil {
309- engineOptions = h .HostOptions .EngineOptions
310- }
311-
312302 stateQueryChan <- HostListItem {
313- Name : h .Name ,
314- DriverName : h .Driver .DriverName (),
315- State : currentState ,
316- EngineOptions : engineOptions ,
317- DockerVersion : dockerVersion ,
318- Error : hostError ,
319- ResponseTime : time .Now ().Round (time .Millisecond ).Sub (requestBeginning .Round (time .Millisecond )),
303+ Name : h .Name ,
304+ DriverName : h .Driver .DriverName (),
305+ State : currentState ,
306+ Error : hostError ,
307+ ResponseTime : time .Now ().Round (time .Millisecond ).Sub (requestBeginning .Round (time .Millisecond )),
320308 }
321309}
322310
0 commit comments