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
This commit is contained in:
Rabi Mishra 2020-03-05 12:32:03 +05:30
parent 0b1f3e73ff
commit d8a7eaf88c
1 changed files with 3 additions and 2 deletions

View File

@ -434,8 +434,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)