Commit 7d55b30b authored by André Anjos's avatar André Anjos 💬
Browse files

[test][utils] Fix docker-pull implementation

parent 0936a76d
......@@ -70,11 +70,12 @@ def pull_docker_test_images():
if not has_image: #must pull (network connection required)
token = os.environ.get('CI_BUILD_TOKEN')
params = (image, tag)
args = (image, tag)
kwargs = {}
if token is not None: #running on CI, setup
auth_config = dict(username='gitlab-ci-token', password=token)
params += (auth_config,)
client.images.pull(*params)
kwargs['auth_config'] = auth_config
client.images.pull(*args, **kwargs)
#----------------------------------------------------------
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment