The Samba-Bugzilla – Attachment 8200 Details for
Bug 9373
Output of 'samba-tool' does not look very nice
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for v4-0-test
tmp40.diff (text/plain), 1.22 KB, created by
Stefan Metzmacher
on 2012-11-15 09:45:16 UTC
(
hide
)
Description:
Patch for v4-0-test
Filename:
MIME Type:
Creator:
Stefan Metzmacher
Created:
2012-11-15 09:45:16 UTC
Size:
1.22 KB
patch
obsolete
>From 49dca37b46fb5a7ee9ce0746e281d15f50ec5690 Mon Sep 17 00:00:00 2001 >From: Stefan Metzmacher <metze@samba.org> >Date: Fri, 9 Nov 2012 09:01:29 +0100 >Subject: [PATCH] s4:samba-tool/testparm: report a CommandError if loading of > the config file fails > >Signed-off-by: Stefan Metzmacher <metze@samba.org> > >Reviewed-by: Andrew Bartlett <abartlet@samba.org> >(cherry picked from commit 11f5d54cbb10fd5c5f0e1718427609709c3476f4) >--- > source4/scripting/python/samba/netcmd/testparm.py | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > >diff --git a/source4/scripting/python/samba/netcmd/testparm.py b/source4/scripting/python/samba/netcmd/testparm.py >index 34c8fa5..9251469 100644 >--- a/source4/scripting/python/samba/netcmd/testparm.py >+++ b/source4/scripting/python/samba/netcmd/testparm.py >@@ -82,7 +82,10 @@ class cmd_testparm(Command): > raise CommandError("Both a DNS name and an IP address are " > "required for the host access check") > >- lp = sambaopts.get_loadparm() >+ try: >+ lp = sambaopts.get_loadparm() >+ except RuntimeError, err: >+ raise CommandError(err) > > # We need this to force the output > samba.set_debug_level(2) >-- >1.7.9.5 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Flags:
metze
:
review?
(
abartlet
)
obnox
:
review+
Actions:
View
Attachments on
bug 9373
:
8172
|
8173
| 8200