You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by ro...@apache.org on 2018/07/11 17:27:21 UTC

[trafficcontrol] branch master updated: Fix compiler error where using tc.DSType is used as a string without a cast.

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

rob 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 5018835  Fix compiler error where using tc.DSType is used as a string without a cast.
5018835 is described below

commit 50188353a6ac039352b46cb8167bfb6972e99458
Author: jrushford <jr...@apache.org>
AuthorDate: Tue Jul 10 15:29:13 2018 -0600

    Fix compiler error where using tc.DSType
    is used as a string without a cast.
---
 grove/grovetccfg/grovetccfg.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/grove/grovetccfg/grovetccfg.go b/grove/grovetccfg/grovetccfg.go
index 7e6897c..7b102e7 100644
--- a/grove/grovetccfg/grovetccfg.go
+++ b/grove/grovetccfg/grovetccfg.go
@@ -752,7 +752,7 @@ func createRulesOld(
 			}
 		}
 
-		dsType := strings.ToLower(ds.Type)
+		dsType := strings.ToLower(string(ds.Type))
 		if !strings.HasPrefix(dsType, "http") && !strings.HasPrefix(dsType, "dns") {
 			fmt.Printf(time.Now().Format(time.RFC3339Nano)+" createRules skipping deliveryservice %v - unknown type %v", ds.XMLID, ds.Type)
 			continue