summaryrefslogtreecommitdiff
path: root/deps/rabbitmq_cli/lib/rabbitmq/cli/ctl/commands/set_policy_command.ex
diff options
context:
space:
mode:
authorDaniil Fedotov <dfedotov@pivotal.io>2016-11-07 14:08:26 +0000
committerDaniil Fedotov <dfedotov@pivotal.io>2016-11-07 14:08:26 +0000
commit08e263ab2ab3883753ecca07320c1fe40fb38f04 (patch)
tree3a17a4624100569a5947b88f97997dde07a6ccaf /deps/rabbitmq_cli/lib/rabbitmq/cli/ctl/commands/set_policy_command.ex
parent0bee160c593ce55693ac8e59e771f6b9415db988 (diff)
downloadrabbitmq-server-git-08e263ab2ab3883753ecca07320c1fe40fb38f04.tar.gz
Vhost limits commands
Diffstat (limited to 'deps/rabbitmq_cli/lib/rabbitmq/cli/ctl/commands/set_policy_command.ex')
-rw-r--r--deps/rabbitmq_cli/lib/rabbitmq/cli/ctl/commands/set_policy_command.ex6
1 files changed, 1 insertions, 5 deletions
diff --git a/deps/rabbitmq_cli/lib/rabbitmq/cli/ctl/commands/set_policy_command.ex b/deps/rabbitmq_cli/lib/rabbitmq/cli/ctl/commands/set_policy_command.ex
index 4b2064ac48..604a3108d6 100644
--- a/deps/rabbitmq_cli/lib/rabbitmq/cli/ctl/commands/set_policy_command.ex
+++ b/deps/rabbitmq_cli/lib/rabbitmq/cli/ctl/commands/set_policy_command.ex
@@ -43,7 +43,7 @@ defmodule RabbitMQ.CLI.Ctl.Commands.SetPolicyCommand do
vhost: vhost,
priority: priority,
apply_to: apply_to}) do
- res = :rabbit_misc.rpc_call(node_name,
+ :rabbit_misc.rpc_call(node_name,
:rabbit_policy,
:parse_set,
[vhost,
@@ -52,10 +52,6 @@ defmodule RabbitMQ.CLI.Ctl.Commands.SetPolicyCommand do
to_char_list(definition),
to_char_list(priority),
apply_to])
- case res do
- {:error, format, args} -> {:error, :rabbit_misc.format(format, args)};
- _ -> res
- end
end
def usage, do: "set_policy [-p <vhost>] [--priority <priority>] [--apply-to <apply-to>] <name> <pattern> <definition>"