From: Douglas Bagnall Date: Wed, 13 Aug 2025 04:21:14 +0000 (+1200) Subject: samba-tool: Command.message() can print multiple lines X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=625cabf65140ee2c79b0a89c483edd071d58a4f4;p=thirdparty%2Fsamba.git samba-tool: Command.message() can print multiple lines Signed-off-by: Douglas Bagnall Reviewed-by: Gary Lockyer --- diff --git a/python/samba/netcmd/__init__.py b/python/samba/netcmd/__init__.py index 0647ed621d6..fc8bf96f19c 100644 --- a/python/samba/netcmd/__init__.py +++ b/python/samba/netcmd/__init__.py @@ -300,8 +300,9 @@ class Command(object): return parser, optiongroups - def message(self, text): - self.outf.write(text + "\n") + def message(self, *text): + for t in text: + print(t, file=self.outf) def _resolve(self, path, *argv, outf=None, errf=None): """This is a leaf node, the command that will actually run."""