Fixed for machine deletion on ou change

This commit is contained in:
Adolfo Gómez García 2018-04-27 10:53:04 +02:00
parent 6db1fdb86d
commit 0648a27daf

View File

@ -141,9 +141,9 @@ class WinDomainOsManager(WindowsOsManager):
return res[0][0] # Returns the DN
def __getMachine(self, l, machineName):
if self._ou:
ou = self._ou
else:
# if self._ou:
# ou = self._ou
# else:
ou = ','.join(['DC=' + i for i in self._domain.split('.')])
fltr = '(&(objectClass=computer)(sAMAccountName={}$))'.format(machineName)
@ -248,7 +248,6 @@ class WinDomainOsManager(WindowsOsManager):
if self.__getGroup(l) is None:
return _('Check Error: group "{}" not found (using "cn" to locate it)').format(self._group)
return _('Server check was successful')
@staticmethod