]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
python:netcmd: Add missing newlines to error messages
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Sun, 6 Aug 2023 22:25:12 +0000 (10:25 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 21 Aug 2023 23:37:29 +0000 (23:37 +0000)
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/netcmd/domain/demote.py

index 217d90a4b913775c9e4c037c3a4e6d3276cb5069..ae4d11dee43c708c61a62d3d677d27ef98e0944c 100644 (file)
@@ -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)