projects
/
osm
/
vim-emu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix restapi compute list unit test
[osm/vim-emu.git]
/
src
/
emuvim
/
api
/
rest
/
compute.py
diff --git
a/src/emuvim/api/rest/compute.py
b/src/emuvim/api/rest/compute.py
index
9f0516b
..
030055e
100755
(executable)
--- a/
src/emuvim/api/rest/compute.py
+++ b/
src/emuvim/api/rest/compute.py
@@
-106,10
+106,10
@@
class ComputeList(Resource):
global dcs
global dcs
- def get(self, dc_label):
+ def get(self, dc_label
=None
):
logging.debug("API CALL: compute list")
try:
logging.debug("API CALL: compute list")
try:
- if dc_label == 'None':
+ if dc_label
is None or dc_label
== 'None':
# return list with all compute nodes in all DCs
all_containers = []
for dc in dcs.itervalues():
# return list with all compute nodes in all DCs
all_containers = []
for dc in dcs.itervalues():