Skip to content

Commit 8c4178b

Browse files
Merge pull request #4 from sooyean-hoo/dev_sooyean
Add a regex to allow Server with "Master :" in Infra Status also get
2 parents 0a14029 + e2ff994 commit 8c4178b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tasks/confirm_primary_server.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ def get_primary_hostname(ignore_infra_status_error)
1515
end
1616
end
1717
output.each_line do |line|
18-
if line.match(/^Primary: /)
19-
primary = line.gsub(/^Primary: /, '').lstrip.rstrip
18+
if line.match(/^Primary: |^Master: /)
19+
primary = line.gsub(/^Primary: |^Master: /, '').lstrip.rstrip
2020
return primary
2121
end
2222
end

0 commit comments

Comments
 (0)