mirror of https://github.com/schoebel/mars
marsadm: disallow --force on 'all' resources
This commit is contained in:
parent
9187bf210d
commit
e02c06e265
|
@ -1188,6 +1188,7 @@ sub do_res {
|
|||
}
|
||||
|
||||
if ($res eq "all" && $cmd ne "show") {
|
||||
ldie "For safty reasons, --force is only allowed on explicitly named resources. Combination of 'all' with --force is disallowed!\n" if $force;
|
||||
foreach $res (glob("$mars/resource-*")) {
|
||||
next unless -e "$res/data-$host";
|
||||
$res =~ s/^.*\/resource-(.*)$/$1/;
|
||||
|
|
Loading…
Reference in New Issue