Skip to content

Commit

Permalink
Merge pull request #156 from abhi-intelops/appconfig-store
Browse files Browse the repository at this point in the history
pointer fix during get call
  • Loading branch information
vramk23 authored Aug 9, 2023
2 parents 18f7ecd + 5c81181 commit b785dc3
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions capten/agent/pkg/capten-store/app_config_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,14 @@ func (a *Store) GetAllApps() ([]*agentpb.SyncAppData, error) {
&overrideValues, &launchUiValues,
&config.Icon, &config.InstallStatus,
) {
configCopy := config
overrideValuesCopy := overrideValues
launchUiValuesCopy := launchUiValues
a := &agentpb.SyncAppData{
Config: &config,
Config: &configCopy,
Values: &agentpb.AppValues{
OverrideValues: []byte(overrideValues),
LaunchUIValues: []byte(launchUiValues)},
OverrideValues: []byte(overrideValuesCopy),
LaunchUIValues: []byte(launchUiValuesCopy)},
}
ret = append(ret, a)
}
Expand Down

0 comments on commit b785dc3

Please sign in to comment.