From 4923f7b2d474771f7f09620bd018fc8449d67eb9 Mon Sep 17 00:00:00 2001 From: junbo Date: Thu, 7 Sep 2017 14:35:56 +0800 Subject: [PATCH] infoblox backend multi_tenant always return true, because the value of multi_tenant is a unicode 0 Change-Id: Iae32498c6e68ed5de082a9fad25d5dc9d53f676d Closes-Bug: #1715559 --- designate/backend/impl_infoblox/connector.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/designate/backend/impl_infoblox/connector.py b/designate/backend/impl_infoblox/connector.py index 8b4b6ce40..fb4e917bd 100644 --- a/designate/backend/impl_infoblox/connector.py +++ b/designate/backend/impl_infoblox/connector.py @@ -47,7 +47,7 @@ class Infoblox(object): other_opts = ['sslverify', 'network_view', 'dns_view', 'multi_tenant'] for opt in reqd_opts + other_opts: - if opt == 'sslverify': + if opt == 'sslverify' or opt == 'multi_tenant': # NOTE(selvakumar): This check is for sslverify option. # type of sslverify is unicode string from designate DB # if the value is 0 getattr called for setting default values.