1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-04 08:22:08 +03:00

s4-testparm: modify dumping of parameters to use the lib/param code to have more consistent output

In making this change, it also fixes a bug where attempting to dump a parameter would immediately cause an error
(due to a lack of string conversion).

Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Jelmer Vernooij <jelmer@samba.org>
This commit is contained in:
Garming Sam
2013-12-27 17:09:35 +13:00
committed by Andrew Bartlett
parent a3162686f8
commit e465634eec
2 changed files with 38 additions and 1 deletions

View File

@ -105,7 +105,7 @@ class cmd_testparm(Command):
lp[section_name].dump(sys.stdout, lp.default_service,
verbose)
else:
self.outf.write(lp.get(parameter_name, section_name)+"\n")
lp.dump_a_parameter(sys.stdout, parameter_name, section_name)
else:
if not suppress_prompt:
self.outf.write("Press enter to see a dump of your service definitions\n")