From cc9e96f5463ba941524c5f7cdb7543a50c1bc187 Mon Sep 17 00:00:00 2001 From: Adrien Candiotti Date: Sun, 22 Sep 2013 22:35:33 -0700 Subject: [PATCH] Update utils.py - the tar function in utils is a non member function but has a self. The problem explained in the title cause the build function of the client to fail when giving a folder parameter : the tar function is called with only one parameter. --- docker/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/utils.py b/docker/utils.py index aa60bc26..12d03411 100644 --- a/docker/utils.py +++ b/docker/utils.py @@ -38,7 +38,7 @@ def mkbuildcontext(dockerfile): return f -def tar(self, path): +def tar(path): f = tempfile.TemporaryFile() t = tarfile.open(mode='w', fileobj=f) t.add(path, arcname='.')