Expanding controller.py with basic user functions, get_models and destroy (#89)
[osm/N2VC.git] / juju / client / facade.py
index a7083e6..a6fd9f6 100644 (file)
@@ -401,7 +401,11 @@ def _buildMethod(cls, name):
         prop = method['properties']
         spec = prop.get('Params')
         if spec:
-            params = _types.get(spec['$ref'])
+            result = _types.get(spec['$ref'])
+            if '$ref' in spec:
+                result = _types.get(spec['$ref'])
+            else:
+                result = SCHEMA_TO_PYTHON[spec['type']]
         spec = prop.get('Result')
         if spec:
             if '$ref' in spec: