summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIan Main <imain@redhat.com>2017-06-08 18:56:55 -0400
committerIan Main <imain@redhat.com>2017-06-08 18:57:27 -0400
commit43d08a0bfa513e064ea99a2246a1c657a5f74bfc (patch)
treea86bc71900b9e76ca06873a2bbea750575dfac86
parentd01de0e985f0b8ed9a65a303c233ebb49d47886e (diff)
Fix bug in docker-toool where values are sometimes empty.
I was getting empty volumes from the json and it was creating bad docker command lines. Change-Id: Ie90fc1afa5711d6b029e98d621507b9cb70c1dbe
-rwxr-xr-xdocker/docker-toool3
1 files changed, 3 insertions, 0 deletions
diff --git a/docker/docker-toool b/docker/docker-toool
index 36aba4a7..0b87ea92 100755
--- a/docker/docker-toool
+++ b/docker/docker-toool
@@ -75,6 +75,9 @@ def parse_opts(argv):
def docker_arg_map(key, value):
value = str(value).encode('ascii', 'ignore')
+ if len(value) == 0:
+ return ''
+
return {
'environment': "--env=%s" % value,
# 'image': value,