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/incubator-trafficcontrol.git

commit 58592b86e3d144751e5d266d4d8e12a2fb75c1cc
Author: Dan Kirkwood <dang...@apache.org>
AuthorDate: Wed Jan 31 15:54:54 2018 -0700

    DeepCachingType -- "NEVER" is now default
---
 lib/go-tc/enum.go | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/lib/go-tc/enum.go b/lib/go-tc/enum.go
index f8f3a66..bcfa09a 100644
--- a/lib/go-tc/enum.go
+++ b/lib/go-tc/enum.go
@@ -191,7 +191,7 @@ type DeepCachingType string
 const (
        DeepCachingTypeAlways  = DeepCachingType("ALWAYS")
        DeepCachingTypeNever   = DeepCachingType("NEVER")
-       DeepCachingTypeInvalid = DeepCachingType("")
+       DeepCachingTypeInvalid = DeepCachingType("INVALID")
 )
 
 // String returns a string representation of this deep caching type
@@ -213,6 +213,9 @@ func DeepCachingTypeFromString(s string) DeepCachingType {
                return DeepCachingTypeAlways
        case "never":
                return DeepCachingTypeNever
+       case "":
+               // default when omitted
+               return DeepCachingTypeNever
        default:
                return DeepCachingTypeInvalid
        }

-- 
To stop receiving notification emails like this one, please contact
r...@apache.org.

Reply via email to