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
ncm-sudo: Fix generation of parameter lists #465
Conversation
Rather than zero or more, as no whitespace would be invalid.
And get rid of all the damn tabs
As specified in the man page. AFAIK tabs have never been an acceptable delimeter for parameter lists. To test this, modify the all_options test to test parameter lists including an option of each type. Fixes quattor#460.
Refer to this link for build results (access rights to CI server needed): |
Anything else is invalid syntax
Refer to this link for build results (access rights to CI server needed): |
} | ||
foreach my $o (INT_OPTS, STRING_OPTS) { | ||
$ln .= "$o=" . $opts{$o}->getValue . "," | ||
if defined $opts{$o}; |
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.
indent
@jrha minor remarks, looks OK |
This makes the generation of boolean and string options more similar. Also add missing indent in logic of string options.
Thanks! |
Refer to this link for build results (access rights to CI server needed): |
@jrha LGTM |
ncm-sudo: Fix generation of parameter lists
Specifying multiple options was possible, but untested by the unit tests, the delimiter was incorrectly specified as a tab character rather than a comma.
Fixes #460 as reported by @drossy.