fix typos

This commit is contained in:
fram3d 2023-06-20 20:11:12 +02:00
parent e1beff914b
commit ca91a5512b
Signed by: fram3d
GPG Key ID: 938920E709EEA32A

View File

@ -40,12 +40,12 @@ class LUSER():
for i in baselist: for i in baselist:
if i.split('=')[0] == 'dc': if i.split('=')[0] == 'dc':
# if first dc, add it from dc variable # if first dc, add it from dc variable
if dcfull == '' and domain='': if dcfull == '' and domain == '':
dcfull = f'dc={dc}' dcfull = f'dc={dc}'
domain = dc domain = dc
else: else:
dcfull += ',dc=' + i.split('=')[1] dcfull += ',dc=' + i.split('=')[1]
domain += f'.{i.split('=')[1]}' domain += f'.{i.split("=")[1]}'
return organization, dc, dcfull, domain return organization, dc, dcfull, domain
@ -54,7 +54,7 @@ class LUSER():
self.admin_user = admin_user self.admin_user = admin_user
self.admin_pass = admin_pass self.admin_pass = admin_pass
self.base = base self.base = base
self.organization, self.dc, self.dcfull, domain = self.expandbase() self.organization, self.dc, self.dcfull, self.domain = self.expandbase()
self.basealt = basealt self.basealt = basealt
self.alt = True self.alt = True
self.autoconnect = autoconnect self.autoconnect = autoconnect