From afbced46c5505358f14db91ac955efd0e6d68b1a Mon Sep 17 00:00:00 2001 From: tierno Date: Sat, 23 Jul 2016 01:43:53 +0200 Subject: [PATCH] fix #30 little bug Change-Id: I8d2bd64bc8dd0469fd7a847404e9fca37eaaa3f2 Signed-off-by: tierno --- vimconn_openstack.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) ") -- 2.25.1