-
Notifications
You must be signed in to change notification settings - Fork 17
samba_cmds: Do not add --debuglevel for wbinfo and ctdb commands
#159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@Mergifyio rebase |
✅ Branch has been successfully rebased |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for looking into this. I started looking into it back in December and then it slipped off my radar.
The general gist looks ok, but I would prefer you use the existing execvp wrapper function unless it doesn't work for some reason - and then either justify why or enhance the existing wrapper.
This is done in preparation to accept objects of CommandArgs class which is the parent class for SambaCommand. Signed-off-by: Anoop C S <[email protected]>
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]>
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 ctdb 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]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
wbinfo and ctdb commands do not accept
--debugleveloptional argument. Make sure that we execute those commands without--debuglevelin the presence of--samba-debug-leveloptional argument to samba-container command or its equivalent withSAMBA_DEBUG_LEVELenvironment variable.fixes #141