]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
check if osd id is an integer, if so use it and discard any empty or non integer...
authorVasu Kulkarni <vasu@redhat.com>
Tue, 9 Oct 2018 20:27:27 +0000 (13:27 -0700)
committerVasu Kulkarni <vasu@redhat.com>
Thu, 14 Feb 2019 20:28:12 +0000 (12:28 -0800)
Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
teuthology/task/ceph_ansible.py

index 72a438efc5b9b47edd08296962929ee5c1db8cd2..d575e4ec529529bcf02fd1fad089967e4b69e38e 100644 (file)
@@ -702,7 +702,8 @@ class CephAnsible(Task):
                         osd_list = []
                         for osd_id in osd_list_all:
                             try:
-                                osd_list.append(osd_id)
+                                if type(int(osd_id)) is int:
+                                    osd_list.append(osd_id)
                             except ValueError:
                                 # ignore any empty lines as part of output
                                 pass