Skip to content

Commit bf44a21

Browse files
committed
Ensure access config file is written before notifications are sent
If you use the postgresql_access resource and have it trigger a reload of the postgresql_service resource, it will not do it in the correct order. Currently, it will reload the server, and then the config file gets updated which means the new config is never reloaded. This ensures that it happens at the end of the resource run so it works in the proper order. Signed-off-by: Lance Albertson <[email protected]>
1 parent 537a860 commit bf44a21

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

resources/access.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@
9595
else
9696
run_action(:update)
9797
end
98+
99+
# Ensure config file is written before notifications are sent
100+
config_resource.run_action(:create)
98101
end
99102
end
100103

0 commit comments

Comments
 (0)