marsadm: fix {get,set}*

This commit is contained in:
Thomas Schoebel-Theuer 2015-01-28 12:12:15 +01:00 committed by Thomas Schoebel-Theuer
parent a1d7faa2fe
commit d40f0d42e3
1 changed files with 1 additions and 1 deletions

View File

@ -4455,7 +4455,7 @@ if ($cmd =~ "show") {
} elsif ($cmd =~ m/^set-.*-value$/) {
$res = shift @args || helplist "numeric argument is missing\n";
ldie "argument '$res' isn't numeric\n" unless $res =~ m/^[0-9.]+$/;
} elsif (!($cmd =~ m/^(create|leave|wait)-cluster|cat|[a-z]+-file|^[sg]et-/)) {
} elsif (!($cmd =~ m/^(create|leave|wait)-cluster|cat|[a-z]+-file/)) {
$res = shift @args || helplist "resource argument is missing\n";
check_id($res);
}