Browse Source

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)
tags/5.0.2
junbo 1 year ago
parent
commit
3634dddc49
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      designate/backend/impl_infoblox/connector.py

+ 1
- 1
designate/backend/impl_infoblox/connector.py View File

@@ -47,7 +47,7 @@ class Infoblox(object):
47 47
         other_opts = ['sslverify', 'network_view', 'dns_view', 'multi_tenant']
48 48
 
49 49
         for opt in reqd_opts + other_opts:
50
-            if opt == 'sslverify':
50
+            if opt == 'sslverify' or opt == 'multi_tenant':
51 51
                 # NOTE(selvakumar): This check is for sslverify option.
52 52
                 # type of sslverify is unicode string from designate DB
53 53
                 # if the value is 0 getattr called for setting default values.

Loading…
Cancel
Save