]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commit
teuthology/scrape.py: Remove empty string and space in _get_service_types wip-ksirivad-fix-62534 1889/head
authorKamoltat Sirivadhna <ksirivad@redhat.com>
Wed, 6 Sep 2023 15:16:37 +0000 (11:16 -0400)
committerKamoltat Sirivadhna <ksirivad@redhat.com>
Fri, 8 Sep 2023 18:25:45 +0000 (14:25 -0400)
commit9e879d05cf6223f46c3b855b5ce43785e81cd795
tree372bbd10b3441860ba60d1c7d560a1f9a6d98ba7
parent54e62bcbac4e53d9685e08328b790d3b20d71cae
teuthology/scrape.py: Remove empty string and space in _get_service_types

Problem:

the function grep returns a list contianing empty string which
results in scrape.py throwing the warning "Misunderstood line: ".

Solution:

filter out empty strings, blank space and None
before getting match with regex.

Fixes: https://tracker.ceph.com/issues/62534
Signed-off-by: Kamoltat Sirivadhna <ksirivad@redhat.com>
teuthology/scrape.py