Remove playbook param from tripleo_validator.py
This param is not present anymore in validation-libs
(cherry picked from commit 5e68a6d1c6
)
Change-Id: I5efd8bafc8062fc13c70d8b2ed090a8e2aefa9b6
This commit is contained in:
parent
b0494327f7
commit
27873c9174
|
@ -238,14 +238,6 @@ class TripleOValidatorRun(command.Command):
|
||||||
" run invocation. For example: --limit \"compute-0,"
|
" run invocation. For example: --limit \"compute-0,"
|
||||||
" compute-1, compute-5\".")
|
" compute-1, compute-5\".")
|
||||||
)
|
)
|
||||||
parser.add_argument('--playbook',
|
|
||||||
nargs="*",
|
|
||||||
default=None,
|
|
||||||
help=_("List of Ansible playbook to use for "
|
|
||||||
"validations. It could be a playbook path "
|
|
||||||
"or a list of playbook.")
|
|
||||||
)
|
|
||||||
|
|
||||||
extra_vars_group = parser.add_mutually_exclusive_group(required=False)
|
extra_vars_group = parser.add_mutually_exclusive_group(required=False)
|
||||||
|
|
||||||
extra_vars_group.add_argument(
|
extra_vars_group.add_argument(
|
||||||
|
@ -314,7 +306,6 @@ class TripleOValidatorRun(command.Command):
|
||||||
def _run_validator_run(self, parsed_args):
|
def _run_validator_run(self, parsed_args):
|
||||||
LOG = logging.getLogger(__name__ + ".ValidationsRunAnsible")
|
LOG = logging.getLogger(__name__ + ".ValidationsRunAnsible")
|
||||||
limit = parsed_args.limit
|
limit = parsed_args.limit
|
||||||
playbook = parsed_args.playbook
|
|
||||||
extra_vars = parsed_args.extra_vars
|
extra_vars = parsed_args.extra_vars
|
||||||
if parsed_args.extra_vars_file:
|
if parsed_args.extra_vars_file:
|
||||||
with open(parsed_args.extra_vars_file, 'r') as env_file:
|
with open(parsed_args.extra_vars_file, 'r') as env_file:
|
||||||
|
@ -333,7 +324,6 @@ class TripleOValidatorRun(command.Command):
|
||||||
DEFAULT_VALIDATIONS_BASEDIR
|
DEFAULT_VALIDATIONS_BASEDIR
|
||||||
actions = ValidationActions()
|
actions = ValidationActions()
|
||||||
results = actions.run_validations(
|
results = actions.run_validations(
|
||||||
playbook=(playbook if playbook else []),
|
|
||||||
inventory=static_inventory,
|
inventory=static_inventory,
|
||||||
limit_hosts=limit,
|
limit_hosts=limit,
|
||||||
group=parsed_args.group,
|
group=parsed_args.group,
|
||||||
|
|
Loading…
Reference in New Issue