Skip to content

Commit 07b3e3b

Browse files
authored
command/init: Merge duplicated PSS logic back into existing codepath (#38227)
1 parent 2bb7472 commit 07b3e3b

File tree

8 files changed

+317
-1147
lines changed

8 files changed

+317
-1147
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
kind: NOTES
2+
body: 'command/init: Provider installation was refactored to enable future enhancements in the area. This results in different order of operations during init and 2 new log messages replacing one (`initializing_provider_plugin_message`). The change should not have any end-user impact aside from the `init` command output.'
3+
time: 2026-03-03T11:54:43.732353Z
4+
custom:
5+
Issue: "38227"

internal/backend/init/init.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,13 @@ func Backend(name string) backend.InitFn {
9393
return backends[name]
9494
}
9595

96+
func BackendExists(name string) bool {
97+
backendsLock.Lock()
98+
defer backendsLock.Unlock()
99+
_, ok := backends[name]
100+
return ok
101+
}
102+
96103
// Set sets a new backend in the list of backends. If f is nil then the
97104
// backend will be removed from the map. If this backend already exists
98105
// then it will be overwritten.

0 commit comments

Comments
 (0)