X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fdummy%2Fdummy_testbed_api.py;fp=sfa%2Fdummy%2Fdummy_testbed_api.py;h=2673166df3fc62b98a86364d8a8f228079707ed4;hb=bd37ef89eeabf6cead7be45d26129814cbbe76cd;hp=f37e52c54f6841d838a3b3508faecd8585a6ec8f;hpb=f76f8187bc730ddc9c9fdab4e92d97df9a0ecc05;p=sfa.git diff --git a/sfa/dummy/dummy_testbed_api.py b/sfa/dummy/dummy_testbed_api.py index f37e52c5..2673166d 100644 --- a/sfa/dummy/dummy_testbed_api.py +++ b/sfa/dummy/dummy_testbed_api.py @@ -32,7 +32,7 @@ def FilterList(myfilter, mylist): if 'ids' in key: pass else: - if myfilter[key] != item[key]: + if isinstance(myfilter[key], str) and myfilter[key] != item[key] or isinstance(myfilter[key], list) and item[key] not in myfilter[key]: result.remove(item) break return result