Skip to content

Commit

Permalink
added condition while setting private name
Browse files Browse the repository at this point in the history
  • Loading branch information
sanj.kumar committed Nov 15, 2024
1 parent 12c7cdf commit 70f95e5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion volterra/resource_volterra_registration_approval.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
}
Expand Down

0 comments on commit 70f95e5

Please sign in to comment.