Skip to content

Commit

Permalink
Fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
rgomezborder authored Oct 9, 2024
1 parent c2bd708 commit af1d75c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/providers/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@

# Check if the virtual IP field exists in the data bag
data_bag_response = `knife data bag show rBglobal ipvirtual-internal-postgresql 2>/dev/null`
virtual_ip_present = (data_bag_response.include?("id") && !data_bag_response.include?("id: null")) ? true : false
virtual_ip_present = (data_bag_response.include?('id') && !data_bag_response.include?('id: null')) ? true : false

# If PostgreSQL is registered in Consul and no virtual IP is set, remove postgresql from /etc/hosts
if postgresql_registered && !virtual_ip_present
Expand Down

0 comments on commit af1d75c

Please sign in to comment.