From 9bb9819db2d1c520ef1a03bb1f017ff4e4ca0dd0 Mon Sep 17 00:00:00 2001 From: John Mulligan Date: Fri, 1 Nov 2024 13:45:25 -0400 Subject: [PATCH] python-common/deployment: rename a single letter variable Rename a single letter variable name that was flagged by flake8. The unique name `lbl` was chosen as it was short and didn't conflict with any existing uses of the variable `label` in this file. Part of an effort to get ceph tox environments passing on Python 3.12. Signed-off-by: John Mulligan --- src/python-common/ceph/deployment/service_spec.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/python-common/ceph/deployment/service_spec.py b/src/python-common/ceph/deployment/service_spec.py index 979c14f7d00..b1a8b8eda36 100644 --- a/src/python-common/ceph/deployment/service_spec.py +++ b/src/python-common/ceph/deployment/service_spec.py @@ -527,8 +527,8 @@ pattern_type=PatternType.fnmatch)) labels = [x for x in strings if 'label:' in x] if len(labels) > 1: raise SpecValidationError('more than one label provided: {}'.format(labels)) - for l in labels: - strings.remove(l) + for lbl in labels: + strings.remove(lbl) label = labels[0][6:] if labels else None host_patterns = strings -- 2.47.3