diff --git a/volterra/resource_volterra_registration_approval.go b/volterra/resource_volterra_registration_approval.go index 5db2ab5af..f04d52dcb 100644 --- a/volterra/resource_volterra_registration_approval.go +++ b/volterra/resource_volterra_registration_approval.go @@ -270,7 +270,6 @@ func findRegistration(client *APIClient, approvalReq *ves_io_schema_registration if it.GetGetSpec().GetPassport().GetClusterName() == aParams.clusterName && it.GetGetSpec().GetInfra().GetHostname() == aParams.hostname { approvalReq.Passport = it.GetSpec.Passport approvalReq.Passport.ClusterSize = aParams.clusterSize - approvalReq.Passport.PrivateNetworkName = aParams.privateNetworkName if aParams.latitude != 0 { approvalReq.Passport.Latitude = aParams.latitude @@ -281,6 +280,9 @@ func findRegistration(client *APIClient, approvalReq *ves_io_schema_registration if aParams.connectedRegion != "" { approvalReq.ConnectedRegion = aParams.connectedRegion } + if aParams.privateNetworkName != "" { + approvalReq.Passport.PrivateNetworkName = aParams.privateNetworkName + } approvalReq.Name = it.Metadata.Name break }