marsadm: fix corner case of guest activation

This commit is contained in:
Thomas Schoebel-Theuer 2022-01-19 05:29:51 +01:00
parent c75c14ec90
commit a7754cdc0c

View File

@ -2781,6 +2781,7 @@ sub recent_cluster {
sub _activate_resource {
my ($cmd, $res, $peer) = @_;
$peer = $host unless $peer;
return if $peer =~ $match_reserved_id;
finish_links();
if (!$res || $res eq "*" || $res eq "all") {
lwarn "no usable resource to activate ($res).\n";