From e789300d1cec539c5210d4395e849c7081ddb473 Mon Sep 17 00:00:00 2001 From: Thiago Brito Date: Wed, 1 Dec 2021 11:51:02 -0300 Subject: [PATCH] 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 Change-Id: I5b51cd344c39a62de97da51c35c87eb91a2b3560 --- sysinv/sysinv/sysinv/sysinv/puppet/pci_irq_affinity.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sysinv/sysinv/sysinv/sysinv/puppet/pci_irq_affinity.py b/sysinv/sysinv/sysinv/sysinv/puppet/pci_irq_affinity.py index a036be2536..518c0622de 100644 --- a/sysinv/sysinv/sysinv/sysinv/puppet/pci_irq_affinity.py +++ b/sysinv/sysinv/sysinv/sysinv/puppet/pci_irq_affinity.py @@ -4,7 +4,6 @@ # SPDX-License-Identifier: Apache-2.0 # -from sysinv.common import constants from sysinv.common import utils from sysinv.helm import helm from sysinv.puppet import openstack @@ -21,9 +20,8 @@ class PciIrqAffinityPuppet(openstack.OpenstackBasePuppet): Checks whether the OpenStack application version includes the pci irq affinity agent container """ - openstack_app_name = constants.HELM_APP_OPENSTACK 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 openstack_app_version = int(openstack_app_version.split('-', 2)[1]) except Exception: