From: kasar Date: Wed, 2 May 2018 12:58:07 +0000 (-0700) Subject: Minor change in vCD connector for get network list X-Git-Tag: v4.0.0~13 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F53%2F6053%2F1;p=osm%2FRO.git Minor change in vCD connector for get network list Signed-off-by: kasar --- 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