From: tierno Date: Fri, 22 Jul 2016 23:43:53 +0000 (+0200) Subject: fix #30 little bug X-Git-Tag: v1.0.0~58 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=afbced46c5505358f14db91ac955efd0e6d68b1a;p=osm%2FRO.git fix #30 little bug Change-Id: I8d2bd64bc8dd0469fd7a847404e9fca37eaaa3f2 Signed-off-by: tierno --- diff --git a/vimconn_openstack.py b/vimconn_openstack.py index f053022d..0907e667 100644 --- a/vimconn_openstack.py +++ b/vimconn_openstack.py @@ -602,7 +602,7 @@ class vimconnector(vimconn.vimconnector): net_list_vim.append({"port-id": new_port["port"]["id"]}) if metadata_vpci: metadata = {"pci_assignement": json.dumps(metadata_vpci)} - if len(metadata["pci_assignement"] >255): + if len(metadata["pci_assignement"]) >255: #limit the metadata size #metadata["pci_assignement"] = metadata["pci_assignement"][0:255] self.logger.warn("Metadata deleted since it exceeds the expected length (255) ")