Преглед на файлове

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++
 		displayed++
 
 
 		c := ApiContainers{
 		c := ApiContainers{
-			Id: container.ShortId(),
+			Id: container.Id,
+		}
+		if trunc_cmd {
+			c = ApiContainers{
+				Id: container.ShortId(),
+			}
 		}
 		}
 
 
 		if !only_ids {
 		if !only_ids {