diff options
author | Simon MacMullen <simon@rabbitmq.com> | 2012-10-24 11:16:28 +0100 |
---|---|---|
committer | Simon MacMullen <simon@rabbitmq.com> | 2012-10-24 11:16:28 +0100 |
commit | 46b2632199b75cf16a17fd47fd530f25352ac3e3 (patch) | |
tree | 63a2cdddf5c6a629b54e65bd204adf34825a36e0 /src/rabbit_policy.erl | |
parent | 521b6e453497de492257bb73c22bc80b733a21b0 (diff) | |
download | rabbitmq-server-46b2632199b75cf16a17fd47fd530f25352ac3e3.tar.gz |
Fix policy info items
Diffstat (limited to 'src/rabbit_policy.erl')
-rw-r--r-- | src/rabbit_policy.erl | 2 |
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)}. |