mitchell852 closed pull request #2021: servers tcp and https ports should be 
optional
URL: https://github.com/apache/incubator-trafficcontrol/pull/2021
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/traffic_ops/traffic_ops_golang/server/servers.go 
b/traffic_ops/traffic_ops_golang/server/servers.go
index bbd2ec4db..c73d6e15f 100644
--- a/traffic_ops/traffic_ops_golang/server/servers.go
+++ b/traffic_ops/traffic_ops_golang/server/servers.go
@@ -80,7 +80,6 @@ func (server *TOServer) Validate(db *sqlx.DB) []error {
                "cdnId":          validation.Validate(server.CDNID, 
validation.NotNil),
                "domainName":     validation.Validate(server.DomainName, 
validation.NotNil, noSpaces),
                "hostName":       validation.Validate(server.HostName, 
validation.NotNil, noSpaces),
-               "httpsPort":      validation.Validate(server.HTTPSPort, 
validation.NotNil),
                "interfaceMtu":   validation.Validate(server.InterfaceMtu, 
validation.NotNil),
                "interfaceName":  validation.Validate(server.InterfaceName, 
validation.NotNil),
                "ipAddress":      validation.Validate(server.IPAddress, 
validation.NotNil, is.IPv4),
@@ -89,7 +88,6 @@ func (server *TOServer) Validate(db *sqlx.DB) []error {
                "physLocationId": validation.Validate(server.PhysLocationID, 
validation.NotNil),
                "profileId":      validation.Validate(server.ProfileID, 
validation.NotNil),
                "statusId":       validation.Validate(server.StatusID, 
validation.NotNil),
-               "tcpPort":        validation.Validate(server.TCPPort, 
validation.NotNil),
                "typeId":         validation.Validate(server.TypeID, 
validation.NotNil),
                "updPending":     validation.Validate(server.UpdPending, 
validation.NotNil),
        }


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to