From a95ba6ca39064962ad5e38425f644e208ef227d3 Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Thu, 11 Oct 2018 09:39:43 -0700 Subject: [PATCH] Fix ansible-test custom docker image traceback. (cherry picked from commit 712ad9ed64084b58058801258087667a6681939d) --- test/runner/lib/executor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/runner/lib/executor.py b/test/runner/lib/executor.py index 6953264eabb..b5e09dd2cda 100644 --- a/test/runner/lib/executor.py +++ b/test/runner/lib/executor.py @@ -1478,7 +1478,7 @@ def get_integration_docker_filter(args, targets): python_version = 2 # images are expected to default to python 2 unless otherwise specified - python_version = int(get_docker_completion().get(args.docker_raw).get('python', str(python_version))) + python_version = int(get_docker_completion().get(args.docker_raw, {}).get('python', str(python_version))) if args.python: # specifying a numeric --python option overrides the default python if args.python.startswith('3'):