Skip to content

Commit

Permalink
Merge pull request #212 from openshift-cherrypick-robot/cherry-pick-2…
Browse files Browse the repository at this point in the history
…09-to-18.0.0-proposed

[18.0.0-proposed] Set status when only PreprovisioningNetworkDataName is used
  • Loading branch information
openshift-merge-bot[bot] authored Sep 27, 2024
2 parents bf1610d + 02b625c commit 71990de
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/openstackbaremetalset/baremetalhost.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,11 @@ func BaremetalHostProvision(
// Update status with BMH provisioning details
//
bmhStatus.UserDataSecretName = userDataSecret.Name
bmhStatus.NetworkDataSecretName = networkDataSecret.Name
if networkDataSecret != nil {
bmhStatus.NetworkDataSecretName = networkDataSecret.Name
} else {
bmhStatus.NetworkDataSecretName = preProvNetworkData
}
bmhStatus.ProvisioningState = baremetalv1.ProvisioningState(foundBaremetalHost.Status.Provisioning.State)
instance.Status.BaremetalHosts[hostName] = bmhStatus

Expand Down

0 comments on commit 71990de

Please sign in to comment.