Fixed windows domain "release", so if domain is not found can be easyly

identified
This commit is contained in:
Adolfo Gómez García 2017-09-19 08:32:51 +02:00
parent aecf6854a4
commit ee661461a5

View File

@ -223,7 +223,7 @@ class WinDomainOsManager(WindowsOsManager):
raise Exception('Machine {} not found on AD (permissions?)'.format(service.friendly_name))
l.delete_s(res) # Remove by DN, SYNC
except IndexError:
logger.error('Error deleting {} from BASE {}'.format(service.friendly_name, ou))
logger.error('Error deleting {} from BASE {}'.format(service.friendly_name, self._ou))
except Exception:
logger.exception('Deleting from AD: ')