From c768d0cb9a8ba0ec401332f17aaf593ea2aa600b Mon Sep 17 00:00:00 2001 From: bhangare Date: Sat, 24 Dec 2016 02:54:51 -0800 Subject: [PATCH] =?utf8?q?Changes=20in=20vimconn=5Fvmware.py:Fixed=20Bug?= =?utf8?q?=20ID=20120=20VMWARE=20Connector:=20Alter=20=E2=80=98instance-sc?= =?utf8?q?enario-list=20VNF=20-vvv=E2=80=99=20return=20to=20be=20ACTIVE=20?= =?utf8?q?instead=20of=20BUILD?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: bhangare --- vimconn_vmware.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 2.25.1