forked from altcloud/fence-virt
Merge pull request #13 from oalbrigt/fence_virt-dont-report-success-incorrect-parameter
fence_virt: dont report success for incorrect parameters
This commit is contained in:
commit
30c3a8d70f
@ -112,7 +112,7 @@ main(int argc, char **argv)
|
|||||||
args.mode = MODE_VSOCK;
|
args.mode = MODE_VSOCK;
|
||||||
|
|
||||||
if (args.flags & F_ERR) {
|
if (args.flags & F_ERR) {
|
||||||
if (args.op != FENCE_VALIDATEALL)
|
if (args.op != FENCE_VALIDATEALL)
|
||||||
args_usage(argv[0], my_options, (argc == 1));
|
args_usage(argv[0], my_options, (argc == 1));
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
@ -904,6 +904,7 @@ args_get_stdin(const char *optstr, fence_virt_args_t *args)
|
|||||||
"parse warning: "
|
"parse warning: "
|
||||||
"illegal variable '%s' on line %d\n", name,
|
"illegal variable '%s' on line %d\n", name,
|
||||||
line);
|
line);
|
||||||
|
args->flags |= F_ERR;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user