Browse Source

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
changes/68/777468/1
Owen McGonagle 1 year ago
parent
commit
df0ae71422
  1. 2
      tripleo_validations/tripleo_validator.py

2
tripleo_validations/tripleo_validator.py

@ -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 "

Loading…
Cancel
Save