diff options
author | Ian Main <imain@redhat.com> | 2017-06-08 18:56:55 -0400 |
---|---|---|
committer | Ian Main <imain@redhat.com> | 2017-06-08 18:57:27 -0400 |
commit | 43d08a0bfa513e064ea99a2246a1c657a5f74bfc (patch) | |
tree | a86bc71900b9e76ca06873a2bbea750575dfac86 /docker | |
parent | d01de0e985f0b8ed9a65a303c233ebb49d47886e (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
Diffstat (limited to 'docker')
-rwxr-xr-x | docker/docker-toool | 3 |
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, |