Don't require provider_networks with no_containers
When no_containers is set in global_overrides it means that it's going to be metal deployment. Since metal deployments do not require provider_networks, we can easily skip check of their existance in openstack_user_config.yml Change-Id: Ie12d13f5eb90bc4fbb4bf73e2d5915b1493e819d
This commit is contained in:
parent
85f66467cd
commit
94e477032a
@ -993,6 +993,11 @@ def _check_config_settings(cidr_networks, config, container_skel):
|
||||
|
||||
# search for any container that doesn't have is_metal flag set to true
|
||||
is_provider_networks_needed = False
|
||||
if 'global_overrides' in config:
|
||||
no_containers = config['global_overrides'].get('no_containers', False)
|
||||
else:
|
||||
no_containers = False
|
||||
if not no_containers:
|
||||
for key, value in container_skel.items():
|
||||
properties = value.get('properties', {})
|
||||
is_metal = properties.get('is_metal', False)
|
||||
|
Loading…
Reference in New Issue
Block a user