Skip to content

Commit

Permalink
Fix nil pointer exception during snapshot-id fetch
Browse files Browse the repository at this point in the history
Signed-off-by: mabhi <abhijit.mukherjee@infracloud.io>
  • Loading branch information
mabhi committed Oct 18, 2023
1 parent 99c4a8e commit ba7e030
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/blockstorage/azure/azuredisk.go
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ func (s *AdStorage) SnapshotParse(ctx context.Context, snapshot interface{}) (*b
func (s *AdStorage) snapshotParse(ctx context.Context, snap armcompute.Snapshot) *blockstorage.Snapshot {
vol := &blockstorage.Volume{
Type: s.Type(),
ID: *snap.Properties.CreationData.SourceResourceID,
ID: *snap.ID,
}

snapCreationTime := *snap.Properties.TimeCreated
Expand Down

0 comments on commit ba7e030

Please sign in to comment.