Checks if the specified target node even exists before trying to read its MAC
address from the config and sending the wake on LAN magic packet.
Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
code => sub {
my ($param) = @_;
code => sub {
my ($param) = @_;
+ PVE::Cluster::check_node_exists($param->{node});
my $config = PVE::NodeConfig::load_config($param->{node});
my $mac_addr = $config->{wakeonlan};
if (!defined($mac_addr)) {
my $config = PVE::NodeConfig::load_config($param->{node});
my $mac_addr = $config->{wakeonlan};
if (!defined($mac_addr)) {