Skip to content

Commit 4ba0646

Browse files
anoopcs9mergify[bot]
authored andcommitted
samba_cmds: Switch wbinfo to CommandArgs type
When '--samba-debug-level' (or SAMBA_DEBUG_LEVEL env var) is specified with samba-container command it adds '--debuglevel' to the underlying command which is not valid for wbinfo resulting in "Invalid option". Instead change its internal type to parent class CommandArgs where we get to run without debug arguments. Signed-off-by: Anoop C S <[email protected]>
1 parent aa84017 commit 4ba0646

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sambacc/samba_cmds.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ def __repr__(self) -> str:
157157

158158
net = SambaCommand("net")
159159

160-
wbinfo = SambaCommand("wbinfo")
160+
wbinfo = CommandArgs("wbinfo")
161161

162162
smbd = SambaCommand("/usr/sbin/smbd")
163163

0 commit comments

Comments
 (0)