Skip to content

Commit 7c53918

Browse files
smortexpraj1001
authored andcommitted
Remove redundant autorequire
We already have a relationship in `manifests/server/instance/service.pp` that ensure `Service["postgresqld_instance_${name}"]` is realized before `Anchor["postgresql::server::service::end::${name}"]`. Fun fact, removing this duplaciate fix the circular dependency reported by puppet.
1 parent 6fd765c commit 7c53918

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

lib/puppet/type/postgresql_psql.rb

-4
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,6 @@ def matches(value)
138138
["postgresql::server::service::end::#{self[:instance]}"]
139139
end
140140

141-
autorequire(:service) do
142-
["postgresqld_instance_#{self[:instance]}"]
143-
end
144-
145141
def should_run_sql(refreshing = false)
146142
onlyif_param = @parameters[:onlyif]
147143
unless_param = @parameters[:unless]

0 commit comments

Comments
 (0)