Skip to content

Commit

Permalink
Fix postgresql_psql autorequire
Browse files Browse the repository at this point in the history
It does not really make sense to require the "begin" anchor, the
`postgresql_psql` type communicating with the server, it makes more
sense to require the "end" anchor which mean that the server is running
and reachable.
  • Loading branch information
smortex committed Jan 3, 2024
1 parent ebc9d7e commit aea357e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/puppet/type/postgresql_psql.rb
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def matches(value)
end

autorequire(:anchor) do
["postgresql::server::service::begin::#{self[:instance]}"]
["postgresql::server::service::end::#{self[:instance]}"]
end

autorequire(:service) do
Expand Down

0 comments on commit aea357e

Please sign in to comment.