Skip to content

Commit

Permalink
Merge pull request #209 from rabi/NetworkDataSecretName
Browse files Browse the repository at this point in the history
Set status when only PreprovisioningNetworkDataName is used
  • Loading branch information
openshift-merge-bot[bot] authored Sep 27, 2024
2 parents 038cf55 + 660a683 commit 1b183c2
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 1b183c2

Please sign in to comment.