Skip to content
This repository has been archived by the owner on Dec 7, 2023. It is now read-only.

Initialize nil status network during conversion #681

Merged
merged 1 commit into from
Aug 31, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions pkg/apis/ignite/v1alpha2/conversion.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ func Convert_v1alpha2_VMStatus_To_ignite_VMStatus(in *VMStatus, out *ignite.VMSt
return err
}

if out.Network == nil {
out.Network = &ignite.Network{}
}

// Set IPAddresses to the new position, under Network block.
out.Network.IPAddresses = in.IPAddresses

Expand Down