From 92d4af3125bdbf3b79aa23516d65e3d6cbe5861f 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()) -- 2.25.1