mirror of https://github.com/schoebel/mars
marsadm: fix {get,set}*
This commit is contained in:
parent
a1d7faa2fe
commit
d40f0d42e3
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue