summaryrefslogtreecommitdiff
path: root/libpod/storage.go
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2018-06-22 05:29:56 -0400
committerAtomic Bot <atomic-devel@projectatomic.io>2018-06-22 13:43:19 +0000
commit1d9e884232c5f89a896617f056fbfcceba1dea31 (patch)
treec34acb1e3eb0c885975550e267f2d4c5a9dcba95 /libpod/storage.go
parent2c81a756e310d59702b52ffc30d84aa9e11a8dbd (diff)
downloadpodman-1d9e884232c5f89a896617f056fbfcceba1dea31.tar.gz
podman-1d9e884232c5f89a896617f056fbfcceba1dea31.tar.bz2
podman-1d9e884232c5f89a896617f056fbfcceba1dea31.zip
We are using err in defer function, needs to be defined name
Since we are checking if err is non nil in defer function we need to define it, so that the check will work correctly. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com> Closes: #985 Approved by: mheon
Diffstat (limited to 'libpod/storage.go')
-rw-r--r--libpod/storage.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/storage.go b/libpod/storage.go
index c5581d53c..b969df7f3 100644
--- a/libpod/storage.go
+++ b/libpod/storage.go
@@ -59,7 +59,7 @@ func (metadata *RuntimeContainerMetadata) SetMountLabel(mountLabel string) {
// CreateContainerStorage creates the storage end of things. We already have the container spec created
// TO-DO We should be passing in an Image object in the future.
-func (r *storageService) CreateContainerStorage(ctx context.Context, systemContext *types.SystemContext, imageName, imageID, containerName, containerID, mountLabel string, options *storage.ContainerOptions) (ContainerInfo, error) {
+func (r *storageService) CreateContainerStorage(ctx context.Context, systemContext *types.SystemContext, imageName, imageID, containerName, containerID, mountLabel string, options *storage.ContainerOptions) (cinfo ContainerInfo, err error) {
var imageConfig *v1.Image
if imageName != "" {
var ref types.ImageReference