You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by jh...@apache.org on 2022/02/15 18:41:27 UTC

[trafficcontrol] branch master updated: Send fallbackToClosest as a boolean instead of a string (#6562)

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

jhg03a 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 ab5bfbd  Send fallbackToClosest as a boolean instead of a string (#6562)
ab5bfbd is described below

commit ab5bfbd5ee02c7124dba7f53f5cf185ec8f1a20c
Author: David Cole <da...@sky.uk>
AuthorDate: Tue Feb 15 18:41:09 2022 +0000

    Send fallbackToClosest as a boolean instead of a string (#6562)
    
    * Send fallbackToClosest as a boolean instead of a string
    
    * Adding changelog entry for PR
---
 CHANGELOG.md                                                        | 1 +
 infrastructure/ansible/roles/dataset_loader/templates/cachegroup.j2 | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 2e40b4f..d000642 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -13,6 +13,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
 - Fixed a cdn-in-a-box build issue when using `RHEL_VERSION=7`
 - [#6549](https://github.com/apache/trafficcontrol/issues/6549) Fixed internal server error while deleting a delivery service created from a DSR (Traafic Ops).
 - [#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.
 
 ### 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/infrastructure/ansible/roles/dataset_loader/templates/cachegroup.j2 b/infrastructure/ansible/roles/dataset_loader/templates/cachegroup.j2
index 58fb45d..6d718dc 100644
--- a/infrastructure/ansible/roles/dataset_loader/templates/cachegroup.j2
+++ b/infrastructure/ansible/roles/dataset_loader/templates/cachegroup.j2
@@ -13,7 +13,7 @@
 #}
 {
 {% if item.fallbackToClosest is defined and item.fallbackToClosest is not none %}
-  "fallbackToClosest": "{{ item.fallbackToClosest }}",
+  "fallbackToClosest": {{ item.fallbackToClosest }},
 {% endif %}
 {% if item.latitude is defined and item.latitude is not none %}
   "latitude": {{ item.latitude }},