Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Now 3 items are returned

  • Loading branch information...
commit a03329aaef5fea21a69319327734b46e543cf407 1 parent b26670d
@lukaszo authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 oca/__init__.py
View
6 oca/__init__.py
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.