Skip to content

Commit

Permalink
add nil check
Browse files Browse the repository at this point in the history
  • Loading branch information
bgriddaluru committed Sep 30, 2024
1 parent 5ad8cb1 commit 2457be5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/compute/virtualmachine/virtualmachine.go
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ func (c *client) getWssdAvailabilitySetReference(s *compute.AvailabilitySetRefer
}

func (c *client) getWssdZoneConfiguration(zoneProfile *compute.ZoneConfiguration) (*wssdcommon.ZoneConfiguration, error) {
if zoneProfile == nil {
if zoneProfile == nil || zoneProfile.Zones == nil {
return nil, nil
}

Expand Down

0 comments on commit 2457be5

Please sign in to comment.