fence: do not load switches for deprecated agents options

loading deprecated options causes switches to be overwritten during
xml parsing, generating incorrect pacemaker configs

Closes: https://github.com/ClusterLabs/anvil/issues/636

Signed-off-by: Fabio M. Di Nitto <fabbione@fabbione.net>
main
Fabio M. Di Nitto 8 months ago
parent 494e538257
commit ef8bb19e60
  1. 2
      Anvil/Tools/Striker.pm

@ -653,7 +653,7 @@ sub get_fence_data
}}); }});
# Make it easier to tranlate a switch to a parameter name. # Make it easier to tranlate a switch to a parameter name.
if ($anvil->data->{fence_data}{$fence_agent}{parameters}{$name}{switches}) if (($anvil->data->{fence_data}{$fence_agent}{parameters}{$name}{switches}) and (not $deprecated))
{ {
$anvil->Log->variables({source => $THIS_FILE, line => __LINE__, level => $debug, list => { $anvil->Log->variables({source => $THIS_FILE, line => __LINE__, level => $debug, list => {
fence_agent => $fence_agent, fence_agent => $fence_agent,

Loading…
Cancel
Save