Skip to content

Commit

Permalink
fix(compute/deploy): avoid config store key conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
Integralist committed Oct 13, 2023
1 parent 914925f commit c662e11
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/commands/compute/setup/config_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,8 @@ func (o *ConfigStores) Create() error {
if len(configStore.Items) > 0 {
for _, item := range configStore.Items {
err = o.Spinner.Process(fmt.Sprintf("Creating config store item '%s'", item.Key), func(_ *text.SpinnerWrapper) error {
_, err = o.APIClient.CreateConfigStoreItem(&fastly.CreateConfigStoreItemInput{
_, err = o.APIClient.UpdateConfigStoreItem(&fastly.UpdateConfigStoreItemInput{
Upsert: true, // Use upsert to avoid conflicts when reusing a starter kit.
StoreID: cs.ID,
Key: item.Key,
Value: item.Value,
Expand Down

0 comments on commit c662e11

Please sign in to comment.