From ea5f2e0f63c125656aa651874e6066ded04666e9 Mon Sep 17 00:00:00 2001 From: Dong Chen Date: Tue, 29 Mar 2016 12:01:56 -0700 Subject: [PATCH] Godep update dockerclient Signed-off-by: Dong Chen --- Godeps/Godeps.json | 7 ++++--- .../src/github.com/samalba/dockerclient/types.go | 8 ++++++++ 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/Godeps/Godeps.json b/Godeps/Godeps.json index fa5b387469..4082950009 100644 --- a/Godeps/Godeps.json +++ b/Godeps/Godeps.json @@ -1,6 +1,7 @@ { "ImportPath": "github.com/docker/swarm", "GoVersion": "go1.5", + "GodepVersion": "v60", "Packages": [ "./..." ], @@ -303,15 +304,15 @@ }, { "ImportPath": "github.com/samalba/dockerclient", - "Rev": "5921830c810f8a9d531ac06070390cd99885db63" + "Rev": "52fe1c9d696f36d894d2319f1717a383ebc46f19" }, { "ImportPath": "github.com/samalba/dockerclient/mockclient", - "Rev": "5921830c810f8a9d531ac06070390cd99885db63" + "Rev": "52fe1c9d696f36d894d2319f1717a383ebc46f19" }, { "ImportPath": "github.com/samalba/dockerclient/nopclient", - "Rev": "5921830c810f8a9d531ac06070390cd99885db63" + "Rev": "52fe1c9d696f36d894d2319f1717a383ebc46f19" }, { "ImportPath": "github.com/samuel/go-zookeeper/zk", diff --git a/Godeps/_workspace/src/github.com/samalba/dockerclient/types.go b/Godeps/_workspace/src/github.com/samalba/dockerclient/types.go index e88de54d7a..1ffc809acc 100644 --- a/Godeps/_workspace/src/github.com/samalba/dockerclient/types.go +++ b/Godeps/_workspace/src/github.com/samalba/dockerclient/types.go @@ -195,6 +195,10 @@ func (s *State) String() string { return "Dead" } + if s.StartedAt.IsZero() { + return "Created" + } + if s.FinishedAt.IsZero() { return "" } @@ -219,6 +223,10 @@ func (s *State) StateString() string { return "dead" } + if s.StartedAt.IsZero() { + return "created" + } + return "exited" }