Skip to content

Commit

Permalink
Handle missing roll during rollback (#52)
Browse files Browse the repository at this point in the history
Fixes #51
  • Loading branch information
Jim Kalafut authored Nov 12, 2019
1 parent 2bf1d3b commit 3c79853
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/rollback.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func (b *backend) serviceAccountKeyRollback(ctx context.Context, req *logical.Re
if err != nil {
return err
}
if rs != nil && rs.TokenGen != nil && entry.KeyName == rs.TokenGen.KeyName {
if rs == nil || (rs.TokenGen != nil && entry.KeyName == rs.TokenGen.KeyName) {
return nil
}

Expand Down

0 comments on commit 3c79853

Please sign in to comment.