aboutsummaryrefslogtreecommitdiffstats
path: root/functest_kubernetes
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2024-01-18 14:49:38 +0100
committerCédric Ollivier <cedric.ollivier@orange.com>2024-01-18 15:39:50 +0100
commite00d5339a10c4ab61fadfb2b05f935374c32b68d (patch)
treedbabd79bce1ab856aa4907f746d11bf3f8e225ce /functest_kubernetes
parent0810d1a2e98d6e811f7980cb692f4909dcab94a5 (diff)
Fix an invalid name issue
C0103: Variable name "ns" doesn't conform to snake_case naming style (invalid-name) Change-Id: I05a93badbe059cf868eade47a38699b6186c3528 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit ebf1398051e0b745fe5175b1d2807dfe5604789c)
Diffstat (limited to 'functest_kubernetes')
-rw-r--r--functest_kubernetes/cnf_conformance/conformance.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/functest_kubernetes/cnf_conformance/conformance.py b/functest_kubernetes/cnf_conformance/conformance.py
index 1c72a05d..b578ce22 100644
--- a/functest_kubernetes/cnf_conformance/conformance.py
+++ b/functest_kubernetes/cnf_conformance/conformance.py
@@ -65,8 +65,8 @@ class CNFConformance(testcase.TestCase):
shutil.rmtree(os.path.join(self.src_dir, "results"))
api_response = self.corev1.list_namespace()
for namespace in ["cnf-testsuite", "default", "litmus"]:
- for ns in api_response.items:
- if ns.metadata.name == namespace:
+ for item in api_response.items:
+ if item.metadata.name == namespace:
self.corev1.patch_namespace(
namespace,
client.V1Namespace(metadata=client.V1ObjectMeta(