From 8627c41d844be224950e7f48a9308622e3d85023 Mon Sep 17 00:00:00 2001 From: Alexandr Morozov Date: Fri, 12 Sep 2014 11:42:12 +0400 Subject: [PATCH] Use defined variable Signed-off-by: Alexandr Morozov Upstream-commit: 555ce0cb54943dab39f16582fc1923467e42af14 Component: engine --- components/engine/daemon/container.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/engine/daemon/container.go b/components/engine/daemon/container.go index 343a5e8f1c..d33721af16 100644 --- a/components/engine/daemon/container.go +++ b/components/engine/daemon/container.go @@ -750,7 +750,7 @@ func (container *Container) GetSize() (int64, int64) { } defer container.Unmount() - if differ, ok := container.daemon.driver.(graphdriver.Differ); ok { + if differ, ok := driver.(graphdriver.Differ); ok { sizeRw, err = differ.DiffSize(container.ID) if err != nil { log.Errorf("Warning: driver %s couldn't return diff size of container %s: %s", driver, container.ID, err)