Skip to content

Commit 37ef336

Browse files
authored
Ensure access config file is written before notifications are sent (#803)
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 825d711 commit 37ef336

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ This file is used to list changes made in the last 3 major versions of the postg
44

55
## Unreleased
66

7-
Standardise files with files in sous-chefs/repo-management
7+
- Ensure access config file is written before notifications are sent
8+
- Standardise files with files in sous-chefs/repo-management
89

910
## 12.3.3 - *2025-09-04*
1011

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)