Skip to content

Commit

Permalink
Fix nil pointer panic VMWare blockstorage (#1584)
Browse files Browse the repository at this point in the history
  • Loading branch information
denisvmedia committed Aug 5, 2022
1 parent f15b408 commit 0e7ded2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/blockstorage/vmware/vmware.go
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ func (p *FcdProvider) SnapshotCreate(ctx context.Context, volume blockstorage.Vo
}
snap, err := p.SnapshotGet(ctx, SnapshotFullID(volume.ID, id.Id))
if err != nil {
return nil, errors.Wrap(err, fmt.Sprintf("Failed to get snapshot %s:%s", volume.ID, snap.ID))
return nil, errors.Wrap(err, fmt.Sprintf("Failed to get snapshot %s:%s", volume.ID, id.Id))
}
log.Debug().Print("SnapshotCreate complete", field.M{"VolumeID": volume.ID, "SnapshotID": snap.ID})
// We don't get size information from `SnapshotGet` - so set this to the volume size for now
Expand Down

0 comments on commit 0e7ded2

Please sign in to comment.