diff options
author | Garming Sam <garming@catalyst.net.nz> | 2013-12-27 17:09:35 +1300 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2014-01-28 17:26:36 +1300 |
commit | e465634eec1ce8ec22948b193f98861199ca59e7 (patch) | |
tree | c9166e2328b3285e385990bd80423be9c80aa08b /python | |
parent | a3162686f8b2b080c1d4fd2acbf881798f888dd7 (diff) | |
download | samba-e465634eec1ce8ec22948b193f98861199ca59e7.tar.gz |
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>
Diffstat (limited to 'python')
-rw-r--r-- | python/samba/netcmd/testparm.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/samba/netcmd/testparm.py b/python/samba/netcmd/testparm.py index 92514694218..7825d259fb5 100644 --- a/python/samba/netcmd/testparm.py +++ b/python/samba/netcmd/testparm.py @@ -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") |