1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00
samba-mirror/python
Steve Howells 9198246f91 s4.2/fsmo.py: fixed fsmo transfer exception
In transfer_role() there is an duplicate call to samdb.modify() inside the if statement
where the type of role is being determined (specifically for the naming fsmo). This
call is unnecessary as after the if statement their is a correct call, with a try/catch
block, used by all fsmo transfers that will handle errors - such as the DC with the
fsmo role being offline.

The call to samdb.modify() inside the if statement for naming fsmo has been removed.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=10924

Signed-off-by: Steve Howells <steve.howells@moscowfirst.com>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Marc Muehlfeld <mmuehlfeld@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2015-03-16 03:00:06 +01:00
..
examples Move python modules from source4/scripting/python/ to python/. 2013-03-02 03:57:34 +01:00
samba s4.2/fsmo.py: fixed fsmo transfer exception 2015-03-16 03:00:06 +01:00
samba_external Move python modules from source4/scripting/python/ to python/. 2013-03-02 03:57:34 +01:00
modules.c Move python modules from source4/scripting/python/ to python/. 2013-03-02 03:57:34 +01:00
modules.h Move python modules from source4/scripting/python/ to python/. 2013-03-02 03:57:34 +01:00
pyglue.c samba:python - Py_RETURN_NONE remove compatibility code for releases < 2.4 2014-01-09 16:27:47 +01:00
uuidmodule.c Move python modules from source4/scripting/python/ to python/. 2013-03-02 03:57:34 +01:00
wscript_build Move python modules from source4/scripting/python/ to python/. 2013-03-02 03:57:34 +01:00