Commit 93af9bc1 authored by Ian Baum's avatar Ian Baum 💬 Committed by DJ Mountney

Fix bug in pg-upgrade HA detection

* get_all_services includes disabled services. So this always passed for
EE
parent ac7ccbbc
---
title: Fix bug in pg-upgrade HA detection
merge_request: 3287
author:
type: fixed
......@@ -124,7 +124,7 @@ add_command_under_category 'pg-upgrade', 'database',
end
end
if File.exist?("#{base_path}/embedded/bin/repmgr") && get_all_services.include?("repmgrd")
if service_enabled?('repmgrd')
log "Detected an HA cluster."
node = Repmgr::Node.new
if node.is_master?
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment