5
0
mirror of git://git.proxmox.com/git/pve-ha-manager.git synced 2025-01-04 09:17:59 +03:00

cli: assert that node exist when changing CRS request state

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2023-04-06 14:09:01 +02:00
parent 03f825dbc7
commit f6c61fe8a3

View File

@ -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}");