1
0
mirror of https://github.com/altlinux/gpupdate.git synced 2025-01-09 21:17:52 +03:00

Fixed search for the required domain

This commit is contained in:
Valery Sinelnikov 2024-02-20 15:31:32 +04:00
parent 3fded83c75
commit 5d2fb3f719

View File

@ -147,13 +147,14 @@ class smbcreds (smbopts):
logdata['smb_exc'] = str(smb_exc)
if not check_scroll_enabled():
if self.dc_site_servers:
list_selected_dc.add(self.dc_site_servers.pop())
self.selected_dc = self.dc_site_servers.pop()
else:
log('F1', logdata)
raise smb_exc
else:
if len(self.dc_site_servers) > 1:
list_selected_dc.add(self.dc_site_servers.pop(0))
self.selected_dc = self.dc_site_servers.pop(0)
list_selected_dc.add(self.selected_dc)
else:
self.selected_dc = get_dc_hostname(self.creds, self.lp)
if self.selected_dc not in list_selected_dc:
@ -162,7 +163,7 @@ class smbcreds (smbopts):
list_selected_dc.add(self.selected_dc)
else:
if self.dc_site_servers:
list_selected_dc.add(self.dc_site_servers.pop())
self.selected_dc = self.dc_site_servers.pop()
else:
log('F1', logdata)
raise smb_exc