Browse Source

Sync before tag.

tags/iteration3-code-freeze
Timur Nurlygayanov 6 years ago
parent
commit
8c2ebd3fe5

+ 2
- 0
python-portasclient/portasclient/common/base.py View File

@@ -56,6 +56,8 @@ class Manager(object):
56 56
             obj_class = self.resource_class
57 57
 
58 58
         if response_key:
59
+            if not body.has_key(response_key):
60
+                body[response_key] = []
59 61
             data = body[response_key]
60 62
         else:
61 63
             data = body

+ 1
- 1
python-portasclient/portasclient/v1/services.py View File

@@ -54,7 +54,7 @@ class WebServer(base.Resource):
54 54
 
55 55
 
56 56
 class WebServerManager(base.Manager):
57
-    resource_class = ActiveDirectory
57
+    resource_class = WebServer
58 58
 
59 59
     def list(self, environment_id, session_id):
60 60
         headers = {'X-Configuration-Session': session_id}

Loading…
Cancel
Save