From 93d2d2077e4537c323077423cb7b650584323fb1 Mon Sep 17 00:00:00 2001 From: Adit Sarfaty Date: Wed, 9 Nov 2016 08:16:02 +0200 Subject: [PATCH] Use neutron_lib converters instead of neutron The converters moved to neutron_lib which broke our code Change-Id: If0a49f966d7dda73327b7cbbe6a44b0ace2d2ee2 --- vmware_nsx/extensions/securitygrouplogging.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vmware_nsx/extensions/securitygrouplogging.py b/vmware_nsx/extensions/securitygrouplogging.py index 14b288d593..2dbb7f7646 100644 --- a/vmware_nsx/extensions/securitygrouplogging.py +++ b/vmware_nsx/extensions/securitygrouplogging.py @@ -13,7 +13,7 @@ # under the License. from neutron.api import extensions -from neutron.api.v2 import attributes +from neutron_lib.api import converters LOGGING = 'logging' @@ -22,7 +22,7 @@ RESOURCE_ATTRIBUTE_MAP = { LOGGING: { 'allow_post': True, 'allow_put': True, - 'convert_to': attributes.convert_to_boolean, + 'convert_to': converters.convert_to_boolean, 'default': False, 'enforce_policy': True, 'is_visible': True}