Follow up on general naming for app openstack

Fixing the way the puppet plugin for pci_irq_affinity_agent retrieves
the openstack app after the merge of [1].

[1] https://review.opendev.org/c/starlingx/config/+/814670

Story: 2009669
Task: 43899

Signed-off-by: Thiago Brito <thiago.brito@windriver.com>
Change-Id: I5b51cd344c39a62de97da51c35c87eb91a2b3560
This commit is contained in:
Thiago Brito 2021-12-01 11:51:02 -03:00
parent c129fce039
commit e789300d1c
1 changed files with 1 additions and 3 deletions

View File

@ -4,7 +4,6 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
# #
from sysinv.common import constants
from sysinv.common import utils from sysinv.common import utils
from sysinv.helm import helm from sysinv.helm import helm
from sysinv.puppet import openstack from sysinv.puppet import openstack
@ -21,9 +20,8 @@ class PciIrqAffinityPuppet(openstack.OpenstackBasePuppet):
Checks whether the OpenStack application version Checks whether the OpenStack application version
includes the pci irq affinity agent container includes the pci irq affinity agent container
""" """
openstack_app_name = constants.HELM_APP_OPENSTACK
try: try:
openstack_app_version = self.dbapi.kube_app_get(openstack_app_name).app_version openstack_app_version = utils.find_openstack_app(self.dbapi).app_version
# stx-openstack app version string format: x.y-wz-release-info # stx-openstack app version string format: x.y-wz-release-info
openstack_app_version = int(openstack_app_version.split('-', 2)[1]) openstack_app_version = int(openstack_app_version.split('-', 2)[1])
except Exception: except Exception: