Fix ansible-test custom docker image traceback.

(cherry picked from commit 712ad9ed64)
This commit is contained in:
Matt Clay 2018-10-11 09:39:43 -07:00
parent f5df17ca51
commit 3eb5e27d6e

View file

@ -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 = 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: # specifying a numeric --python option overrides the default python
if args.python.startswith('3'): if args.python.startswith('3'):