From ad45a1bb77cfb8023e1aeb31416f41a329d79d0b Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Tue, 6 Jul 2021 12:25:27 +0000 Subject: [PATCH] Revert "Replace fnmatch with oslo.utils.fnmatch" This reverts commit 9ff337881be12463b15ab56dfa7d76c36142970f. Reason for revert: The oslo_utils.fnmatch module was added to solve an issue in py2.7 but it is no longer required because py2.7 is no longer supported. The module was deprecated since oslo.utils 4.9.1[1] and the stdlib's fnmatch module should be used instead. [1] 4c893c92f551c9dd2a7cfbe7ae8171ad8139df0b Change-Id: I84c0d2b2705e34b9853d42d03a398ecbe4f95330 --- monasca_agent/collector/checks_d/cacti.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monasca_agent/collector/checks_d/cacti.py b/monasca_agent/collector/checks_d/cacti.py index 47a00fa1..30f3b325 100644 --- a/monasca_agent/collector/checks_d/cacti.py +++ b/monasca_agent/collector/checks_d/cacti.py @@ -1,8 +1,8 @@ # (C) Copyright 2015 Hewlett Packard Enterprise Development Company LP from collections import namedtuple +from fnmatch import fnmatch import os -from oslo_utils import fnmatch import time from monasca_agent.collector.checks import AgentCheck