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:
parent
b1b1bd2cfb
commit
8800f06c94
|
@ -513,6 +513,13 @@ class DeployOvercloud(command.Command):
|
||||||
"Error: --deployed-server must be used when using "
|
"Error: --deployed-server must be used when using "
|
||||||
"--baremetal-deployment")
|
"--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:
|
if parsed_args.environment_directories:
|
||||||
self._validate_args_environment_directory(
|
self._validate_args_environment_directory(
|
||||||
parsed_args.environment_directories)
|
parsed_args.environment_directories)
|
||||||
|
|
Loading…
Reference in New Issue