summaryrefslogtreecommitdiff
path: root/libpod/pod.go
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@gmail.com>2018-02-07 15:05:17 -0500
committerAtomic Bot <atomic-devel@projectatomic.io>2018-02-09 15:01:34 +0000
commitcb28a1d284c8e9ec3539a11e472590686ccbd5f8 (patch)
tree917381beb09c040142213d6874ee49b5e08c7167 /libpod/pod.go
parent4bc9a6d63370b4bd9cfb29e52f4f0dbb0070f856 (diff)
downloadpodman-cb28a1d284c8e9ec3539a11e472590686ccbd5f8.tar.gz
podman-cb28a1d284c8e9ec3539a11e472590686ccbd5f8.tar.bz2
podman-cb28a1d284c8e9ec3539a11e472590686ccbd5f8.zip
Fix bugs identified by unit tests
Signed-off-by: Matthew Heon <matthew.heon@gmail.com> Closes: #268 Approved by: rhatdan
Diffstat (limited to 'libpod/pod.go')
-rw-r--r--libpod/pod.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/libpod/pod.go b/libpod/pod.go
index 4f5521ccb..ecef8554e 100644
--- a/libpod/pod.go
+++ b/libpod/pod.go
@@ -45,6 +45,7 @@ func newPod(lockDir string, runtime *Runtime) (*Pod, error) {
pod := new(Pod)
pod.id = stringid.GenerateNonCryptoID()
pod.name = namesgenerator.GetRandomName(0)
+ pod.labels = make(map[string]string)
pod.runtime = runtime
// Path our lock file will reside at