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:
parent
03f825dbc7
commit
f6c61fe8a3
@ -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}");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user