From 555ce0cb54943dab39f16582fc1923467e42af14 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 --- daemon/container.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/container.go b/daemon/container.go index 343a5e8f1c304..d33721af160c9 100644 --- a/daemon/container.go +++ b/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)