summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Klishin <michael@clojurewerkz.org>2017-10-30 18:37:20 +0300
committerMichael Klishin <michael@clojurewerkz.org>2017-10-30 18:37:20 +0300
commitafe052f5cdd8535c7d4eaec2d7c10435ca7925e7 (patch)
tree86e4a8ae889106f29d539097cec530db5d722b66
parent3e6d1ad207b5dc5b5ab5fff39d0d82f0d45915c0 (diff)
parentb822e85b94278282ed014cfc61afc836df132108 (diff)
downloadrabbitmq-server-git-afe052f5cdd8535c7d4eaec2d7c10435ca7925e7.tar.gz
Merge branch 'stable'
-rw-r--r--src/rabbit_queue_location_validator.erl5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rabbit_queue_location_validator.erl b/src/rabbit_queue_location_validator.erl
index 2b0f8c7a0f..e70bcd314a 100644
--- a/src/rabbit_queue_location_validator.erl
+++ b/src/rabbit_queue_location_validator.erl
@@ -54,7 +54,6 @@ module(#amqqueue{} = Q) ->
undefined -> no_location_strategy;
Mode -> module(Mode)
end;
-
module(Strategy) when is_binary(Strategy) ->
case rabbit_registry:binary_to_type(Strategy) of
{error, not_found} -> no_location_strategy;
@@ -68,4 +67,6 @@ module(Strategy) when is_binary(Strategy) ->
_ ->
no_location_strategy
end
- end.
+ end;
+module(Strategy) ->
+ module(rabbit_data_coercion:to_binary(Strategy)).