Skip to content

Commit

Permalink
Merge pull request #152 from rabi/preprov
Browse files Browse the repository at this point in the history
Don't override preprovisioningNetworkDataName
  • Loading branch information
openshift-merge-bot[bot] authored Mar 18, 2024
2 parents e5f6ab9 + 06947f2 commit 4df2088
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/openstackbaremetalset/baremetalhost.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,10 @@ func BaremetalHostProvision(
foundBaremetalHost.Spec.AutomatedCleaningMode = metal3v1.AutomatedCleaningMode(instance.Spec.AutomatedCleaningMode)

// Ensure PreprovisioningNetworkDataName is set as per spec
foundBaremetalHost.Spec.PreprovisioningNetworkDataName = instance.Spec.BaremetalHosts[hostName].PreprovisioningNetworkDataName
preprovNetworkData := instance.Spec.BaremetalHosts[hostName].PreprovisioningNetworkDataName
if preprovNetworkData != "" {
foundBaremetalHost.Spec.PreprovisioningNetworkDataName = preprovNetworkData
}

//
// Ensure the image url is up to date unless already provisioned
Expand Down

0 comments on commit 4df2088

Please sign in to comment.