mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-30 14:21:26 -07: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
|
from __future__ import absolute_import, print_function
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import random
|
|
||||||
|
|
||||||
from . import (
|
from . import (
|
||||||
CloudProvider,
|
CloudProvider,
|
||||||
|
@ -53,6 +52,8 @@ class ForemanProvider(CloudProvider):
|
||||||
https://github.com/ansible/foreman-test-container
|
https://github.com/ansible/foreman-test-container
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
DOCKER_REGISTRY = 'quay'
|
||||||
|
|
||||||
def __init__(self, args):
|
def __init__(self, args):
|
||||||
"""Set up container references for provider.
|
"""Set up container references for provider.
|
||||||
|
|
||||||
|
@ -76,7 +77,7 @@ class ForemanProvider(CloudProvider):
|
||||||
# to guarantee CI passes with the version used:
|
# to guarantee CI passes with the version used:
|
||||||
'{registry_url}/{img_name}:{img_tag}'
|
'{registry_url}/{img_name}:{img_tag}'
|
||||||
).format(
|
).format(
|
||||||
**(image_src or random.choice(self.DOCKER_IMAGES))
|
**(image_src or self.DOCKER_IMAGES[self.DOCKER_REGISTRY])
|
||||||
)
|
)
|
||||||
self.container_name = ''
|
self.container_name = ''
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue