Fix ldap configuration in /etc/netbox/config/ldap/*.py not loaded

This commit is contained in:
comphilip 2020-10-27 19:27:51 +08:00 committed by GitHub
parent 43aea3a1dd
commit a3c21ae0ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,3 +13,10 @@ def __getattr__(name):
except: except:
pass pass
raise AttributeError raise AttributeError
def __dir__():
names = []
for config in _loaded_configurations:
for name in config.__dir__():
names.append(name)
return names