summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjunbo <junbo4242@gmail.com>2017-09-07 14:35:56 +0800
committerjunbo <junbo4242@gmail.com>2018-01-31 07:35:29 +0000
commit3634dddc49eee2a70e84b871cd4942662e6f7a81 (patch)
tree37d6d82a2af0b7f9058688873f9a961733180b8c
parent0c06a06fa409e1aebf97eb136d25b017598e2f88 (diff)
infoblox backend multi_tenant always return true, because the value
of multi_tenant is a unicode 0 Change-Id: Iae32498c6e68ed5de082a9fad25d5dc9d53f676d Closes-Bug: #1715559 (cherry picked from commit 4923f7b2d474771f7f09620bd018fc8449d67eb9)
Notes
Notes (review): Code-Review+1: Dai Dang Van <daidv@vn.fujitsu.com> Code-Review+1: Erik Olof Gunnar Andersson <eandersson@blizzard.com> Code-Review+2: Graham Hayes <gr@ham.ie> Workflow+1: Graham Hayes <gr@ham.ie> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Mon, 12 Feb 2018 14:21:49 +0000 Reviewed-on: https://review.openstack.org/539435 Project: openstack/designate Branch: refs/heads/stable/pike
-rw-r--r--designate/backend/impl_infoblox/connector.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/designate/backend/impl_infoblox/connector.py b/designate/backend/impl_infoblox/connector.py
index 8b4b6ce..fb4e917 100644
--- a/designate/backend/impl_infoblox/connector.py
+++ b/designate/backend/impl_infoblox/connector.py
@@ -47,7 +47,7 @@ class Infoblox(object):
47 other_opts = ['sslverify', 'network_view', 'dns_view', 'multi_tenant'] 47 other_opts = ['sslverify', 'network_view', 'dns_view', 'multi_tenant']
48 48
49 for opt in reqd_opts + other_opts: 49 for opt in reqd_opts + other_opts:
50 if opt == 'sslverify': 50 if opt == 'sslverify' or opt == 'multi_tenant':
51 # NOTE(selvakumar): This check is for sslverify option. 51 # NOTE(selvakumar): This check is for sslverify option.
52 # type of sslverify is unicode string from designate DB 52 # type of sslverify is unicode string from designate DB
53 # if the value is 0 getattr called for setting default values. 53 # if the value is 0 getattr called for setting default values.