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~1^2 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=c768d0cb9a8ba0ec401332f17aaf593ea2aa600b;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 02222a8d..3ec4d147 100644 --- a/vimconn_vmware.py +++ b/vimconn_vmware.py @@ -620,7 +620,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' @@ -629,7 +629,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()) @@ -2426,4 +2426,4 @@ class vimconnector(vimconn.vimconnector): if response.status_code == requests.codes.ok: return response.content - return None \ No newline at end of file + return None