Fix api call to get_deployment_status

Function get_deployment_status requires the stack_name parameter, cannot pass plan=plan

Without fix, getting this error:

openstack tripleo validator run --group pre-update-prepare --plan overcloud
get_deployment_status() got an unexpected keyword argument 'plan'

Co-authored-by: Daniel Bengtsson <dbengt@redhat.com>
Change-Id: I7b5da62a564c22738427632ea03b1e33cdf2f89a
This commit is contained in:
Owen McGonagle 2021-02-24 16:08:13 -05:00
parent cae7d151ad
commit df0ae71422
1 changed files with 1 additions and 1 deletions

View File

@ -348,7 +348,7 @@ class TripleOValidatorRun(command.Command):
"inventory or use authentication."))
else:
if plan:
status = deployment.get_deployment_status(clients, plan=plan)
status = deployment.get_deployment_status(clients, plan)
if not status or status in NO_VALIDATION_STATE:
raise exceptions.CommandError(
_("The plan and the stack '{}' doesn't exist OR are "