Fix parameters passing in kubernetes_mgmt

While calling _get_by_name() in kubernetes_mgmt, it is passing
self + other 3 parameters.

However it is calling _get_by_name() by instance,
thus passing self is not needed and will cause an unmatch
parameters error during Terminate process

Closes-Bug: #1922194
Change-Id: Ic4601cb277c02b2d41263724bb2ce21e7d24cdbb
This commit is contained in:
LiangLu 2021-04-02 09:13:03 +08:00
parent a6811d2c59
commit d987f6190d
1 changed files with 1 additions and 1 deletions

View File

@ -719,7 +719,7 @@ class KubernetesMgmtDriver(vnflcm_abstract_driver.VnflcmMgmtAbstractDriver):
def _get_vim_by_name(self, context, k8s_vim_name):
common_db_api = CommonDbMixin()
result = common_db_api._get_by_name(
self, context, nfvo_db.Vim, k8s_vim_name)
context, nfvo_db.Vim, k8s_vim_name)
if not result:
LOG.debug("Cannot find kubernetes "