Skip to content

Commit

Permalink
fix panic
Browse files Browse the repository at this point in the history
  • Loading branch information
xrstf committed Oct 11, 2021
1 parent 0ef55d8 commit 994d4fa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/publisher/vault.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,12 @@ func (v *Vault) UpdateRobot(ctx context.Context, robot *config.RobotConfig, toke
}

if !secretUpToDate {
if secret == nil {
secret = &api.Secret{
Data: map[string]interface{}{},
}
}

existingData[addr.key+"-token"] = token
existingData[addr.key+"-config"] = configJson

Expand Down

0 comments on commit 994d4fa

Please sign in to comment.