mirror of
https://github.com/schoebel/mars
synced 2025-01-06 06:15:28 +00:00
marsadm: fix present-{disk,device}
This commit is contained in:
parent
8e2de8288d
commit
e36a2ea4f1
@ -2989,7 +2989,7 @@ sub eval_fn {
|
||||
$result = "/dev/mars/$result" if ($what eq "device" && $result !~ m:^/:);
|
||||
if ($op eq "present" && $result) {
|
||||
$result = -b $result;
|
||||
$result = "" unless defined($result);
|
||||
$result = "0" unless defined($result);
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user