mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Unrandomize docker registry selection
stick with quay for now
This commit is contained in:
parent
d5b340cc43
commit
1664554b4a
1 changed files with 3 additions and 2 deletions
|
@ -4,7 +4,6 @@
|
|||
from __future__ import absolute_import, print_function
|
||||
|
||||
import os
|
||||
import random
|
||||
|
||||
from . import (
|
||||
CloudProvider,
|
||||
|
@ -53,6 +52,8 @@ class ForemanProvider(CloudProvider):
|
|||
https://github.com/ansible/foreman-test-container
|
||||
"""
|
||||
|
||||
DOCKER_REGISTRY = 'quay'
|
||||
|
||||
def __init__(self, args):
|
||||
"""Set up container references for provider.
|
||||
|
||||
|
@ -76,7 +77,7 @@ class ForemanProvider(CloudProvider):
|
|||
# to guarantee CI passes with the version used:
|
||||
'{registry_url}/{img_name}:{img_tag}'
|
||||
).format(
|
||||
**(image_src or random.choice(self.DOCKER_IMAGES))
|
||||
**(image_src or self.DOCKER_IMAGES[self.DOCKER_REGISTRY])
|
||||
)
|
||||
self.container_name = ''
|
||||
|
||||
|
|
Loading…
Reference in a new issue