From: bhangare Date: Sat, 24 Dec 2016 10:54:51 +0000 (-0800) Subject: Changes in vimconn_vmware.py:Fixed Bug ID 120 VMWARE Connector: Alter ‘instance-scena... X-Git-Tag: v1.0.3~2 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=92d4af3125bdbf3b79aa23516d65e3d6cbe5861f;p=osm%2FRO.git Changes in vimconn_vmware.py:Fixed Bug ID 120 VMWARE Connector: Alter ‘instance-scenario-list VNF -vvv’ return to be ACTIVE instead of BUILD Signed-off-by: bhangare --- diff --git a/vimconn_vmware.py b/vimconn_vmware.py index 5b3ac3d8..ef3ada51 100644 --- a/vimconn_vmware.py +++ b/vimconn_vmware.py @@ -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())