From 75633266c851856b32056b8b5eb1b6ed4f29b84e Mon Sep 17 00:00:00 2001 From: Kyle Mestery Date: Thu, 7 Jan 2016 16:46:37 -0600 Subject: [PATCH] rpc_backend: Conditionally enable rabbit on fedora Change 4d8c03a3 added logic to enable rabbit on Fedora/CentOS systems whether or not rabbit is enabled. This corrects that to only enable rabbit when it is configured as such. Change-Id: I270e79ff989176770d65df1ac0ac4e2c4382bb9a Signed-off-by: Kyle Mestery --- lib/rpc_backend | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/rpc_backend b/lib/rpc_backend index a44287c1b8..05e303e3e7 100644 --- a/lib/rpc_backend +++ b/lib/rpc_backend @@ -47,9 +47,9 @@ function install_rpc_backend { if is_service_enabled rabbit; then # Install rabbitmq-server install_package rabbitmq-server - fi - if is_fedora; then - sudo systemctl enable rabbitmq-server + if is_fedora; then + sudo systemctl enable rabbitmq-server + fi fi }