Skip to content

Commit

Permalink
Merge pull request #4 from sooyean-hoo/dev_sooyean
Browse files Browse the repository at this point in the history
Add a regex to allow Server with "Master :" in Infra Status also get
  • Loading branch information
benjamin-robertson authored Jun 8, 2023
2 parents 0a14029 + e2ff994 commit 8c4178b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tasks/confirm_primary_server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ def get_primary_hostname(ignore_infra_status_error)
end
end
output.each_line do |line|
if line.match(/^Primary: /)
primary = line.gsub(/^Primary: /, '').lstrip.rstrip
if line.match(/^Primary: |^Master: /)
primary = line.gsub(/^Primary: |^Master: /, '').lstrip.rstrip
return primary
end
end
Expand Down

0 comments on commit 8c4178b

Please sign in to comment.