Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion internal/hsm/state_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,15 @@ func (b *HSMv2) Init(globals *HSM_GLOBALS) error {
logy.SetFormatter(Formatter)

b.HSMGlobals.Reservation = &reservation.Production{}
b.HSMGlobals.Reservation.InitInstance(b.HSMGlobals.SMUrl, "", 1, logy, svcName)

// Select the HTTP client to use
httpClient := b.HSMGlobals.SVCHttpClient.InsecureClient
if b.HSMGlobals.SVCHttpClient.SecureClient != nil {
httpClient = b.HSMGlobals.SVCHttpClient.SecureClient
}

// Initialize the reservation production instance with our http client, so bearer tokens are added to requests
b.HSMGlobals.Reservation.InitWithHTTPClient(b.HSMGlobals.SMUrl, "", 1, logy, svcName, httpClient)
}

//Make sure certain things are set up
Expand Down