From c54816dfc39b00824b9d4902ed2e533b3c6c07a7 Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Sat, 17 Mar 2018 20:08:27 -0400 Subject: Check for duplicate names when generating new container and pod names. This fixes the situation where we fail to create a container when a name already exists. Signed-off-by: Daniel J Walsh Closes: #517 Approved by: baude --- libpod/boltdb_state.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libpod/boltdb_state.go') diff --git a/libpod/boltdb_state.go b/libpod/boltdb_state.go index aeda94e50..e1f29b16a 100644 --- a/libpod/boltdb_state.go +++ b/libpod/boltdb_state.go @@ -706,7 +706,7 @@ func (s *BoltState) LookupPod(idOrName string) (*Pod, error) { if err != nil { return err } else if !exists { - return errors.Wrapf(ErrNoSuchCtr, "no pod with name or ID %s found", idOrName) + return errors.Wrapf(ErrNoSuchPod, "no pod with name or ID %s found", idOrName) } } -- cgit v1.2.3-54-g00ecf