diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2018-03-17 20:08:27 -0400 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-03-29 01:55:20 +0000 |
commit | c54816dfc39b00824b9d4902ed2e533b3c6c07a7 (patch) | |
tree | b810d6625d3f095a7d7e8561bde651062ab9f44d /libpod/boltdb_state.go | |
parent | f936b745b66de3cbbdf924a26bb35766afe5acba (diff) | |
download | podman-c54816dfc39b00824b9d4902ed2e533b3c6c07a7.tar.gz podman-c54816dfc39b00824b9d4902ed2e533b3c6c07a7.tar.bz2 podman-c54816dfc39b00824b9d4902ed2e533b3c6c07a7.zip |
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 <dwalsh@redhat.com>
Closes: #517
Approved by: baude
Diffstat (limited to 'libpod/boltdb_state.go')
-rw-r--r-- | libpod/boltdb_state.go | 2 |
1 files changed, 1 insertions, 1 deletions
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) } } |