fix restapi compute list unit test
authorstevenvanrossem <steven.vanrossem@intec.ugent.be>
Tue, 9 Aug 2016 22:13:24 +0000 (00:13 +0200)
committerstevenvanrossem <steven.vanrossem@intec.ugent.be>
Tue, 9 Aug 2016 22:13:24 +0000 (00:13 +0200)
src/emuvim/api/rest/compute.py

index 1082a4d..030055e 100755 (executable)
@@ -109,7 +109,7 @@ class ComputeList(Resource):
     def get(self, dc_label=None):
         logging.debug("API CALL: compute list")
         try:
     def get(self, dc_label=None):
         logging.debug("API CALL: compute list")
         try:
-            if dc_label is 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():