mirror of
git://git.proxmox.com/git/pve-ha-manager.git
synced 2025-01-21 22:03:52 +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 {
|
code => sub {
|
||||||
my ($param) = @_;
|
my ($param) = @_;
|
||||||
|
|
||||||
|
PVE::Cluster::check_node_exists($param->{node});
|
||||||
|
|
||||||
my $cmd = $param->{disable} ? 'disable-node-maintenance' : 'enable-node-maintenance';
|
my $cmd = $param->{disable} ? 'disable-node-maintenance' : 'enable-node-maintenance';
|
||||||
PVE::HA::Config::queue_crm_commands("$cmd $param->{node}");
|
PVE::HA::Config::queue_crm_commands("$cmd $param->{node}");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user