Don't allow --config-download-only with --baremetal-deployment

We would need the stack to be updated for newly provisioned
nodes. Therefore --config-download-only and --setup-only
would not work with --baremetal-deployment.

Change-Id: I307bbf28dc3ee447a6ed704b5f956118d2099e07
This commit is contained in:
ramishra 2021-05-26 06:58:15 +05:30
parent b1b1bd2cfb
commit 8800f06c94
1 changed files with 7 additions and 0 deletions

View File

@ -513,6 +513,13 @@ class DeployOvercloud(command.Command):
"Error: --deployed-server must be used when using "
"--baremetal-deployment")
if (parsed_args.baremetal_deployment
and (parsed_args.config_download_only
or parsed_args.setup_only)):
raise oscexc.CommandError(
"Error: --config-download-only/--setup-only must not be "
"used when using --baremetal-deployment")
if parsed_args.environment_directories:
self._validate_args_environment_directory(
parsed_args.environment_directories)