You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by de...@apache.org on 2018/10/02 16:41:02 UTC

[trafficcontrol] branch master updated: fix python ORT to compare correctly

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

dewrich 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 50500b8  fix python ORT to compare correctly
50500b8 is described below

commit 50500b880c5611be74b51a0ff3cddf3c3cd4cd21
Author: Dan Kirkwood <da...@apache.org>
AuthorDate: Tue Oct 2 10:35:07 2018 -0600

    fix python ORT to compare correctly
---
 infrastructure/cdn-in-a-box/edge/traffic_ops_ort.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/infrastructure/cdn-in-a-box/edge/traffic_ops_ort.py b/infrastructure/cdn-in-a-box/edge/traffic_ops_ort.py
index 3ad1cdd..810a4d3 100755
--- a/infrastructure/cdn-in-a-box/edge/traffic_ops_ort.py
+++ b/infrastructure/cdn-in-a-box/edge/traffic_ops_ort.py
@@ -1112,7 +1112,7 @@ def updateConfig(directory:str, fname:str, contents:str) -> bool:
 	                     if l and not l.startswith("# DO NOT EDIT")\
 	                     and not l.startswith("# TRAFFIC OPS NOTE:")])
 
-	if stripComments(diskContents.strip()) == stripComments(contents.strip()):
+	if stripComments(diskContents.strip()) == stripComments(importantContents.strip()):
 		logging.info("on-disk contents match Traffic Ops - nothing to do")
 		return True