Skip to content

Commit

Permalink
Update lib/puppet/provider/rabbitmq_policy/rabbitmqctl.rb
Browse files Browse the repository at this point in the history
Co-authored-by: Will Yardley <wyardley@users.noreply.github.com>
  • Loading branch information
jimmybigcommerce and wyardley committed Nov 5, 2023
1 parent 72e0495 commit f3dfb3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/puppet/provider/rabbitmq_policy/rabbitmqctl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def self.policies(vhost, name)
# / ha-all all .* {"ha-mode":"all","ha-sync-mode":"automatic"} 0 << This is for RabbitMQ v < 3.7.0
# / ha-all .* all {"ha-mode":"all","ha-sync-mode":"automatic"} 0 << This is for RabbitMQ v >= 3.7.0
if Puppet::Util::Package.versioncmp(rabbitmq_version, '3.7') >= 0
regex = %r{^(\S+)\s+(\S+)\s+(\S+)\s+(all|exchanges|queues|classic_queues|quorum_queues|streams)?\s+(\S+)\s+(\d+)$}
regex = %r{^(\S+)\s+(\S+)\s+(\S+)\s+(all|exchanges|(?:classic_|quorum_)?queues|streams)?\s+(\S+)\s+(\d+)$}
applyto_index = 4
pattern_index = 3
else
Expand Down

0 comments on commit f3dfb3d

Please sign in to comment.