Skip to content

Commit a71bbdd

Browse files
committed
fix(migrate): preserve cert store inventory schedule
1 parent 8b52b08 commit a71bbdd

2 files changed

Lines changed: 16 additions & 6 deletions

File tree

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
# v1.8.1
2+
3+
## Fixes
4+
5+
### CLI
6+
7+
- `migrate pam` will correctly preserve Inventory Schedules on targeted certificate stores
8+
19
# v1.8.0
210

311
## Features

cmd/migrate.go

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -359,12 +359,14 @@ var migratePamCmd = &cobra.Command{
359359
// update property object
360360
// set required fields, and new Properties
361361
updateStoreArgs := api.UpdateStoreFctArgs{
362-
Id: certStore.Id,
363-
ClientMachine: certStore.ClientMachine,
364-
StorePath: certStore.StorePath,
365-
AgentId: certStore.AgentId,
366-
Properties: certStore.Properties,
367-
Password: &certStore.Password,
362+
Id: certStore.Id,
363+
ClientMachine: certStore.ClientMachine,
364+
StorePath: certStore.StorePath,
365+
AgentId: certStore.AgentId,
366+
Properties: certStore.Properties,
367+
Password: &certStore.Password, // TODO: secret field, needs to be processed the same as other secret fields
368+
InventorySchedule: &certStore.InventorySchedule,
369+
CertStoreInventoryJobId: &certStore.CertStoreInventoryJobId,
368370
}
369371

370372
// TODO: use updated client when API endpoint available

0 commit comments

Comments
 (0)