mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
Merge pull request #3693 from wanyaoqi/bugfix/wyq/fix-bm-register-find-network
bugfix: bm register find network
This commit is contained in:
@@ -50,12 +50,7 @@ func getBmAgentUrl(ctx context.Context, w http.ResponseWriter, r *http.Request)
|
||||
return
|
||||
}
|
||||
|
||||
n, _ := models.NetworkManager.GetOnPremiseNetworkOfIP(
|
||||
ipAddr, compute.NETWORK_TYPE_BAREMETAL, tristate.None)
|
||||
if n == nil {
|
||||
n, _ = models.NetworkManager.GetOnPremiseNetworkOfIP(
|
||||
ipAddr, compute.NETWORK_TYPE_IPMI, tristate.None)
|
||||
}
|
||||
n, _ := models.NetworkManager.GetOnPremiseNetworkOfIP(ipAddr, "", tristate.None)
|
||||
if n == nil {
|
||||
httperrors.NotFoundError(w, "Network not found")
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user