You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The set action in policy provider prevents a policy from being set if it already exists.
I think expected behavior would be to let the policy be updated if it already exists.
rabbitmqctl set_policy is already an idempotent command and handles this out of the box.
Casual proof the rabbitmq set_policy is idempotent:
user@ip:~$ sudo rabbitmqctl list_policies
Listing policies ...
/ mps-ha-all all ^ {"ha-mode":"all"} 0
user@ip:~$ sudo rabbitmqctl set_policy mps-ha-all "^" '{"ha-mode":"all"}' --priority 0
Setting policy "mps-ha-all" for pattern "^" to "{\"ha-mode\":\"all\"}" with priority "0" ...
user@ip:~$ sudo rabbitmqctl list_policies
Listing policies ...
/ mps-ha-all all ^ {"ha-mode":"all"} 0
The text was updated successfully, but these errors were encountered:
The set action in policy provider prevents a policy from being set if it already exists.
I think expected behavior would be to let the policy be updated if it already exists.
rabbitmqctl set_policy
is already an idempotent command and handles this out of the box.Casual proof the
rabbitmq set_policy
is idempotent:The text was updated successfully, but these errors were encountered: