Permalink
Browse files

Now 3 items are returned

  • Loading branch information...
lukaszo committed Nov 8, 2011
1 parent b26670d commit a03329aaef5fea21a69319327734b46e543cf407
Showing with 3 additions and 3 deletions.
  1. +3 −3 oca/__init__.py
View
@@ -85,14 +85,14 @@ def call(self, function, *args):
func = getattr(self.server.one, function)
ret = func(self.one_auth, *args)
try:
- return_code, data = ret
+ is_success, data, return_code = ret
except ValueError:
data = ''
- return_code = ret[0]
+ is_success = False
except socket.error, e:
#connection error
raise e
- if not return_code:
+ if not is_success:
raise OpenNebulaException(data)
return data

0 comments on commit a03329a

Please sign in to comment.