fix a bug at getting VM console
authortierno <alfonso.tiernosepulveda@telefonica.com>
Fri, 22 Jul 2016 23:46:03 +0000 (01:46 +0200)
committertierno <alfonso.tiernosepulveda@telefonica.com>
Fri, 22 Jul 2016 23:46:03 +0000 (01:46 +0200)
Change-Id: I3fc83a3143279c5764c996e26968bbf94b994b67
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
nfvo.py

diff --git a/nfvo.py b/nfvo.py
index 9c6dace..b358ea8 100644 (file)
--- a/nfvo.py
+++ b/nfvo.py
@@ -1796,9 +1796,9 @@ def instance_action(mydb,nfvo_tenant,instance_id, action_dict):
                 vm_error+=1
 
     if vm_ok==0: #all goes wrong
-        return 1, vm_result
+        return vm_result
     else:
-        return 1, vm_result
+        return vm_result
     
 def create_or_use_console_proxy_thread(console_server, console_port):
     #look for a non-used port