Changes in vimconn_vmware.py:Fixed Bug ID 120 VMWARE Connector: Alter ‘instance-scena... 38/838/2
authorbhangare <sbhangare@vmware.com>
Sat, 24 Dec 2016 10:54:51 +0000 (02:54 -0800)
committertierno <alfonso.tiernosepulveda@telefonica.com>
Fri, 23 Dec 2016 12:24:50 +0000 (13:24 +0100)
Signed-off-by: bhangare <sbhangare@vmware.com>
vimconn_vmware.py

index 5b3ac3d..ef3ada5 100644 (file)
@@ -649,7 +649,7 @@ class vimconnector(vimconn.vimconnector):
                 errormsg = ''
                 vcd_network = self.get_vcd_network(network_uuid=net)
                 if vcd_network is not None and vcd_network:
-                    if vcd_network['status'] == 1:
+                    if vcd_network['status'] == '1':
                         status = 'ACTIVE'
                     else:
                         status = 'DOWN'
@@ -658,7 +658,7 @@ class vimconnector(vimconn.vimconnector):
                     errormsg = 'Network not found.'
 
                 dict_entry[net] = {'status': status, 'error_msg': errormsg,
-                                   'vm_info': yaml.safe_dump(vcd_network)}
+                                   'vim_info': yaml.safe_dump(vcd_network)}
         except:
             self.logger.debug("Error in refresh_nets_status")
             self.logger.debug(traceback.format_exc())