From: John Mulligan Date: Fri, 1 Nov 2024 17:45:25 +0000 (-0400) Subject: python-common/deployment: rename a single letter variable X-Git-Tag: v20.0.0~647^2~19 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9bb9819db2d1c520ef1a03bb1f017ff4e4ca0dd0;p=ceph.git 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 --- diff --git a/src/python-common/ceph/deployment/service_spec.py b/src/python-common/ceph/deployment/service_spec.py index 979c14f7d00f..b1a8b8eda362 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