You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by ne...@apache.org on 2016/11/07 19:30:01 UTC
[15/21] incubator-trafficcontrol git commit: Fix TM2 invalid enum
strings to be unique
Fix TM2 invalid enum strings to be unique
Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/3a73422b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/3a73422b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/3a73422b
Branch: refs/heads/master
Commit: 3a73422b60fa5cf0de9541016c02a9efe90b39d5
Parents: fdb6dfb
Author: Robert Butts <ro...@gmail.com>
Authored: Thu Nov 3 09:24:36 2016 -0600
Committer: Dave Neuman <ne...@apache.org>
Committed: Mon Nov 7 12:29:08 2016 -0700
----------------------------------------------------------------------
traffic_monitor/experimental/traffic_monitor/enum/enum.go | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3a73422b/traffic_monitor/experimental/traffic_monitor/enum/enum.go
----------------------------------------------------------------------
diff --git a/traffic_monitor/experimental/traffic_monitor/enum/enum.go b/traffic_monitor/experimental/traffic_monitor/enum/enum.go
index c8389b9..05be348 100644
--- a/traffic_monitor/experimental/traffic_monitor/enum/enum.go
+++ b/traffic_monitor/experimental/traffic_monitor/enum/enum.go
@@ -38,7 +38,7 @@ func (t CacheType) String() string {
case CacheTypeMid:
return "MID"
default:
- return "INVALID"
+ return "INVALIDCACHETYPE"
}
}
@@ -75,7 +75,7 @@ func (t DSType) String() string {
case DSTypeDNS:
return "DNS"
default:
- return "INVALID"
+ return "INVALIDDSTYPE"
}
}
@@ -120,7 +120,7 @@ func (t CacheStatus) String() string {
case CacheStatusReported:
return string(t)
default:
- return "INVALID"
+ return "INVALIDCACHESTATUS"
}
}