Merge pull request #648 from ClusterLabs/fix-fence-opts-parsing

fence: do not load switches for deprecated agents options
main
Fabio M. Di Nitto 8 months ago committed by GitHub
commit 9cfadcf096
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  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.
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 => {
fence_agent => $fence_agent,

Loading…
Cancel
Save