summaryrefslogtreecommitdiffstats
path: root/src/python-common
diff options
context:
space:
mode:
authorAdam King <47704447+adk3798@users.noreply.github.com>2023-12-13 18:15:53 +0100
committerGitHub <noreply@github.com>2023-12-13 18:15:53 +0100
commit848c66d16898e25388bf3c1f3ec3ce06f00eacb8 (patch)
tree547ac5b22e7bba3b703fb4cd1f5a82f3938d8dd1 /src/python-common
parentMerge pull request #54681 from adk3798/device-limit-testing (diff)
parentpython-common: fix osdspec_affinity check (diff)
downloadceph-848c66d16898e25388bf3c1f3ec3ce06f00eacb8.tar.xz
ceph-848c66d16898e25388bf3c1f3ec3ce06f00eacb8.zip
Merge pull request #54786 from guits/fix_63729
python-common: fix osdspec_affinity check Reviewed-by: Adam King <adking@redhat.com>
Diffstat (limited to 'src/python-common')
-rw-r--r--src/python-common/ceph/deployment/drive_selection/selector.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/python-common/ceph/deployment/drive_selection/selector.py b/src/python-common/ceph/deployment/drive_selection/selector.py
index 31e330432cd..041f1ed3044 100644
--- a/src/python-common/ceph/deployment/drive_selection/selector.py
+++ b/src/python-common/ceph/deployment/drive_selection/selector.py
@@ -142,7 +142,7 @@ class DriveSelection(object):
other_osdspec_affinity = ''
for lv in disk.lvs:
if 'osdspec_affinity' in lv.keys():
- if lv['osdspec_affinity'] != self.spec.service_id:
+ if lv['osdspec_affinity'] != str(self.spec.service_id):
other_osdspec_affinity = lv['osdspec_affinity']
break
if other_osdspec_affinity: