Unlock host fails if an application is applied

A recent commit 483482aede
added a new parameter "mode" to method perform_app_apply() in
rpcapi.py. The reference to this method when the application
is reapplied needs to be updated.

Change-Id: I730dcead336449e9db60bfee566eee6fcb7af132
Closes-Bug: 1828562
Signed-off-by: Wei Zhou <wei.zhou@windriver.com>
This commit is contained in:
Wei Zhou 2019-05-16 18:38:55 -04:00
parent 686d10c9cf
commit 8a11142e2f
1 changed files with 2 additions and 1 deletions

View File

@ -2473,7 +2473,8 @@ class HostController(rest.RestController):
db_app.progress = None
db_app.save()
pecan.request.rpcapi.perform_app_apply(
pecan.request.context, db_app, False)
pecan.request.context, db_app,
app_not_already_applied=False, mode=None)
else:
LOG.info("%s system app is present but not applied, "
"skipping re-apply" % constants.HELM_APP_OPENSTACK)