From 40d97800f7b48f533abfcdef98ee992daf9acb37 Mon Sep 17 00:00:00 2001 From: kasar Date: Wed, 2 May 2018 05:58:07 -0700 Subject: [PATCH] Minor change in vCD connector for get network list Signed-off-by: kasar --- osm_ro/vimconn_vmware.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/osm_ro/vimconn_vmware.py b/osm_ro/vimconn_vmware.py index 4c81b9b0..2a8adaf9 100644 --- a/osm_ro/vimconn_vmware.py +++ b/osm_ro/vimconn_vmware.py @@ -586,7 +586,7 @@ class vimconnector(vimconn.vimconnector): shared = False filter_dict["shared"] = shared filter_dict["tenant_id"] = vdc_uuid - if net_details.get('status') == 1: + if int(net_details.get('status')) == 1: filter_dict["admin_state_up"] = True else: filter_dict["admin_state_up"] = False @@ -674,7 +674,7 @@ class vimconnector(vimconn.vimconnector): shared = False filter_entry["shared"] = shared filter_entry["tenant_id"] = vdcid - if net_details.get('status') == 1: + if int(net_details.get('status')) == 1: filter_entry["admin_state_up"] = True else: filter_entry["admin_state_up"] = False @@ -745,7 +745,7 @@ class vimconnector(vimconn.vimconnector): shared = False filter_dict["shared"] = shared filter_dict["tenant_id"] = vdc_id - if net_details.get('status') == 1: + if int(net_details.get('status')) == 1: filter_dict["admin_state_up"] = True else: filter_dict["admin_state_up"] = False -- 2.25.1