git://git.onelab.eu
/
sfa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Refactor Dummy Driver and make it implements AM API v3 natively
[sfa.git]
/
sfa
/
dummy
/
dummy_testbed_api.py
diff --git
a/sfa/dummy/dummy_testbed_api.py
b/sfa/dummy/dummy_testbed_api.py
index
f37e52c
..
2673166
100644
(file)
--- 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