You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by zr...@apache.org on 2022/03/02 23:47:40 UTC

[trafficcontrol] branch master updated: Fixed validation response from acme_accounts (#6604)

This is an automated email from the ASF dual-hosted git repository.

zrhoffman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficcontrol.git


The following commit(s) were added to refs/heads/master by this push:
     new 822254d  Fixed validation response from acme_accounts (#6604)
822254d is described below

commit 822254d06326a4876780ea76919625c02b3bfb76
Author: mattjackson220 <33...@users.noreply.github.com>
AuthorDate: Wed Mar 2 16:45:07 2022 -0700

    Fixed validation response from acme_accounts (#6604)
---
 CHANGELOG.md              | 1 +
 lib/go-tc/acme_account.go | 8 ++++----
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 57057d3..07b815b 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -20,6 +20,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
 - [#6538](https://github.com/apache/trafficcontrol/pull/6538) Fixed the incorrect use of secure.port on TrafficRouter and corrected to the httpsPort value from the TR server configuration.
 - [#6562](https://github.com/apache/trafficcontrol/pull/6562) Fixed incorrect template in Ansible dataset loader role when fallbackToClosest is defined.
 - [#6590](https://github.com/apache/trafficcontrol/pull/6590) Python client: Corrected parameter name in decorator for get_parameters_by_profile_id
+- [#6368](https://github.com/apache/trafficcontrol/pull/6368) Fixed validation response message from `/acme_accounts`
 
 ### Removed
 - Remove traffic_portal dependencies to mitigate `npm audit` issues, specifically `grunt-concurrent`, `grunt-contrib-concat`, `grunt-contrib-cssmin`, `grunt-contrib-jsmin`, `grunt-contrib-uglify`, `grunt-contrib-htmlmin`, `grunt-newer`, and `grunt-wiredep`
diff --git a/lib/go-tc/acme_account.go b/lib/go-tc/acme_account.go
index 1a2b96d..06c3aa9 100644
--- a/lib/go-tc/acme_account.go
+++ b/lib/go-tc/acme_account.go
@@ -39,10 +39,10 @@ type AcmeAccount struct {
 // Validate validates the AcmeAccount request is valid for creation or update.
 func (aa *AcmeAccount) Validate(tx *sql.Tx) error {
 	errs := validation.Errors{
-		"email":       validation.Validate(aa.Email, validation.Required),
-		"private_key": validation.Validate(aa.PrivateKey, validation.Required),
-		"uri":         validation.Validate(aa.Uri, validation.Required),
-		"provider":    validation.Validate(aa.Provider, validation.Required),
+		"email":      validation.Validate(aa.Email, validation.Required),
+		"privateKey": validation.Validate(aa.PrivateKey, validation.Required),
+		"uri":        validation.Validate(aa.Uri, validation.Required),
+		"provider":   validation.Validate(aa.Provider, validation.Required),
 	}
 
 	return util.JoinErrs(tovalidate.ToErrors(errs))