Merge pull request #38 from mnederlof/allow-vhost-policy-priority
Allow setting the priority for a rabbitmq policy
diff --git a/rabbitmq/server/vhost.sls b/rabbitmq/server/vhost.sls
index 6e06ede..f53019c 100644
--- a/rabbitmq/server/vhost.sls
+++ b/rabbitmq/server/vhost.sls
@@ -33,6 +33,7 @@
- name: {{ policy.name }}
- pattern: {{ policy.pattern }}
- definition: {{ policy.definition|json }}
+ - priority: {{ policy.get('priority', 0)|int }}
- vhost: {{ host_name }}
- require:
- service: rabbitmq_service