summaryrefslogtreecommitdiff
path: root/src/rabbit_policy.erl
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2012-10-24 11:16:28 +0100
committerSimon MacMullen <simon@rabbitmq.com>2012-10-24 11:16:28 +0100
commit46b2632199b75cf16a17fd47fd530f25352ac3e3 (patch)
tree63a2cdddf5c6a629b54e65bd204adf34825a36e0 /src/rabbit_policy.erl
parent521b6e453497de492257bb73c22bc80b733a21b0 (diff)
downloadrabbitmq-server-46b2632199b75cf16a17fd47fd530f25352ac3e3.tar.gz
Fix policy info items
Diffstat (limited to 'src/rabbit_policy.erl')
-rw-r--r--src/rabbit_policy.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rabbit_policy.erl b/src/rabbit_policy.erl
index 9af8fa18..2717cc92 100644
--- a/src/rabbit_policy.erl
+++ b/src/rabbit_policy.erl
@@ -43,7 +43,7 @@ name(#amqqueue{policy = Policy}) -> name0(Policy);
name(#exchange{policy = Policy}) -> name0(Policy).
name0(undefined) -> none;
-name0(Policy) -> pget(<<"name">>, Policy).
+name0(Policy) -> pget(name, Policy).
set(Q = #amqqueue{name = Name}) -> Q#amqqueue{policy = set0(Name)};
set(X = #exchange{name = Name}) -> X#exchange{policy = set0(Name)}.