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 4923f7b2d4)
This commit is contained in:
junbo 2017-09-07 14:35:56 +08:00
parent 0c06a06fa4
commit 3634dddc49
1 changed files with 1 additions and 1 deletions

View File

@ -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.