Skip network check with stack env when validations disabled

Allow for bypassing check_stack_network_matches_env_files()
when --disable-validations is provided.

Change-Id: Ie24163a39a68ec73ae8ea5ad1011eb3789961077
Closes-Bug: #1866155
(cherry picked from commit d8a7eaf88c)
This commit is contained in:
Rabi Mishra 2020-03-05 12:32:03 +05:30 committed by Alex Schultz
parent a310a3d53c
commit ef33854935
1 changed files with 3 additions and 2 deletions

View File

@ -509,8 +509,9 @@ class DeployOvercloud(command.Command):
template_utils.deep_update(env, localenv)
if stack:
# note(aschultz): network validation goes here before we deploy
utils.check_stack_network_matches_env_files(stack, env)
if not parsed_args.disable_validations:
# note(aschultz): network validation goes here before we deploy
utils.check_stack_network_matches_env_files(stack, env)
bp_cleanup = self._create_breakpoint_cleanup_env(
tht_root, parsed_args.stack)
template_utils.deep_update(env, bp_cleanup)