From: Joseph Sutton Date: Sun, 6 Aug 2023 22:25:12 +0000 (+1200) Subject: python:netcmd: Add missing newlines to error messages X-Git-Tag: tevent-0.16.0~888 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d40293e0df53c300dee03628716c7e2aa679a40e;p=thirdparty%2Fsamba.git python:netcmd: Add missing newlines to error messages Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- diff --git a/python/samba/netcmd/domain/demote.py b/python/samba/netcmd/domain/demote.py index 217d90a4b91..ae4d11dee43 100644 --- a/python/samba/netcmd/domain/demote.py +++ b/python/samba/netcmd/domain/demote.py @@ -185,7 +185,7 @@ class cmd_domain_demote(Command): if (len(res) != 1): if not (dsa_options & DS_NTDSDSA_OPT_DISABLE_OUTBOUND_REPL) and not samdb.am_rodc(): self.errf.write( - "Error while demoting, re-enabling inbound replication") + "Error while demoting, re-enabling inbound replication\n") dsa_options ^= DS_NTDSDSA_OPT_DISABLE_INBOUND_REPL nmsg["options"] = ldb.MessageElement(str(dsa_options), ldb.FLAG_MOD_REPLACE, "options") samdb.modify(nmsg) @@ -208,7 +208,7 @@ class cmd_domain_demote(Command): except Exception as e: if not (dsa_options & DS_NTDSDSA_OPT_DISABLE_OUTBOUND_REPL) and not samdb.am_rodc(): self.errf.write( - "Error while demoting, re-enabling inbound replication") + "Error while demoting, re-enabling inbound replication\n") dsa_options ^= DS_NTDSDSA_OPT_DISABLE_INBOUND_REPL nmsg["options"] = ldb.MessageElement(str(dsa_options), ldb.FLAG_MOD_REPLACE, "options") samdb.modify(nmsg)