From d1c1cfaf19ff74aa24c00c622c5eb01f7169c788 Mon Sep 17 00:00:00 2001 From: qgarnier Date: Thu, 29 Oct 2020 09:14:21 +0100 Subject: [PATCH] Fix #2304 (#2306) --- apps/pacemaker/local/mode/constraints.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/pacemaker/local/mode/constraints.pm b/apps/pacemaker/local/mode/constraints.pm index b2cf81029..dd8b1d42a 100644 --- a/apps/pacemaker/local/mode/constraints.pm +++ b/apps/pacemaker/local/mode/constraints.pm @@ -95,7 +95,7 @@ sub run { my ($stdout) = $options{custom}->execute_command( command => 'crm_resource', command_path => '/usr/sbin', - command_options => '--constraints -r' + command_options => '--constraints -r ' . $self->{option_results}->{resource} ); $self->parse_output(output => $stdout); @@ -113,7 +113,7 @@ __END__ Check that a resource has no location constraint (migrate without unmigrate) Can be executed from any cluster node. -Command used: /usr/sbin/crm_resource --constraints -r +Command used: /usr/sbin/crm_resource --constraints -r resource_name =over 8