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 <[email protected]>
  • Loading branch information
mabhi committed Oct 25, 2023
1 parent 16bce57 commit 4a70d33
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 4a70d33

Please sign in to comment.