Skip to content

Commit

Permalink
fix(gcp): nil pointer exception (#960)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamtagscherer committed Nov 17, 2023
1 parent 472aedd commit dd145e6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/orchestrator/provider/gcp/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,9 @@ func (p *Provider) getVMInfoFromVirtualMachine(ctx context.Context, vm *computep
if err != nil {
logrus.Warnf("failed to get disk %v: %v", diskName, err)
} else {
platform = *disk.Architecture
if disk.Architecture != nil {
platform = *disk.Architecture
}
image = getLastURLPart(disk.SourceImage)
}

Expand Down

0 comments on commit dd145e6

Please sign in to comment.