diff --git a/src/PVE/CLI/ha_manager.pm b/src/PVE/CLI/ha_manager.pm index a0ebe57..54fbe20 100644 --- a/src/PVE/CLI/ha_manager.pm +++ b/src/PVE/CLI/ha_manager.pm @@ -132,6 +132,8 @@ __PACKAGE__->register_method ({ code => sub { my ($param) = @_; + PVE::Cluster::check_node_exists($param->{node}); + my $cmd = $param->{disable} ? 'disable-node-maintenance' : 'enable-node-maintenance'; PVE::HA::Config::queue_crm_commands("$cmd $param->{node}");