From: Vasu Kulkarni Date: Tue, 9 Oct 2018 20:27:27 +0000 (-0700) Subject: check if osd id is an integer, if so use it and discard any empty or non integer... X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=81cf3f2d7c0ebd1c8cd849b83221fe2a67d92bf4;p=teuthology.git check if osd id is an integer, if so use it and discard any empty or non integer ids. Signed-off-by: Vasu Kulkarni --- diff --git a/teuthology/task/ceph_ansible.py b/teuthology/task/ceph_ansible.py index 72a438efc..d575e4ec5 100644 --- a/teuthology/task/ceph_ansible.py +++ b/teuthology/task/ceph_ansible.py @@ -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