set buildargs default value if None

Signed-off-by: Leks <alexsmir@list.ru>
This commit is contained in:
Leks 2019-03-01 14:05:39 +03:00
parent 24ace2dac8
commit 37e096f6ad
1 changed files with 1 additions and 0 deletions

View File

@ -121,6 +121,7 @@ class BuildApiMixin(object):
remote = context = None
headers = {}
container_limits = container_limits or {}
buildargs = buildargs or {}
if path is None and fileobj is None:
raise TypeError("Either path or fileobj needs to be provided.")
if gzip and encoding is not None: