소스 검색

Merge pull request #575 from odk-/notrunc-container-id

full container.Id display when notrunc is used
Victor Vieux 12 년 전
부모
커밋
d270501de2
1개의 변경된 파일6개의 추가작업 그리고 1개의 파일을 삭제
  1. 6 1
      server.go

+ 6 - 1
server.go

@@ -262,7 +262,12 @@ func (srv *Server) Containers(all, trunc_cmd, only_ids bool, n int, since, befor
 		displayed++
 
 		c := ApiContainers{
-			Id: container.ShortId(),
+			Id: container.Id,
+		}
+		if trunc_cmd {
+			c = ApiContainers{
+				Id: container.ShortId(),
+			}
 		}
 
 		if !only_ids {