Use the default ContainerImagePrepare if not provided
Previously before we enabled ovn by default, you didn't actually have to specify a ContainerImagePrepare statement for a basic deploy to work. Now that we have enabled ovn by default, we need to properly evaluate the environment to determine which neutron related containers will be needed. Change-Id: I2147dcbe1c0247c49f13dbe5538694124886041b
This commit is contained in:
parent
759e8d37db
commit
3208261450
@ -152,9 +152,11 @@ def container_images_prepare_multi(environment, roles_data, dry_run=False,
|
|||||||
|
|
||||||
pd = environment.get('parameter_defaults', {})
|
pd = environment.get('parameter_defaults', {})
|
||||||
cip = pd.get('ContainerImagePrepare')
|
cip = pd.get('ContainerImagePrepare')
|
||||||
|
# if user does not provide a ContainerImagePrepare, use the defaults.
|
||||||
if not cip:
|
if not cip:
|
||||||
LOG.info(_("No ContainerImagePrepare parameter defined."))
|
LOG.info(_("No ContainerImagePrepare parameter defined. Using "
|
||||||
return
|
"the defaults."))
|
||||||
|
cip = CONTAINER_IMAGE_PREPARE_PARAM
|
||||||
|
|
||||||
mirrors = {}
|
mirrors = {}
|
||||||
mirror = pd.get('DockerRegistryMirror')
|
mirror = pd.get('DockerRegistryMirror')
|
||||||
|
Loading…
Reference in New Issue
Block a user