From 278a80cc2580144f16e61146dc4535833ea741dc Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Mon, 18 Mar 2019 15:41:17 -0400 Subject: [PATCH] feat: switch from _all_ to _default_ for process type This is a special process type that signifies it's the default value for everything. --- plugins/resource/subcommands.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/resource/subcommands.go b/plugins/resource/subcommands.go index a476df739..040c9ef44 100644 --- a/plugins/resource/subcommands.go +++ b/plugins/resource/subcommands.go @@ -57,7 +57,7 @@ func clearByRequestType(appName string, processType string, requestType string) humanAppName = "default" } message := fmt.Sprintf("clearing %v %v", humanAppName, noun) - if processType != "_all_" { + if processType != "_default_" { message = fmt.Sprintf("%v (%v)", message, processType) } common.LogInfo2Quiet(message) @@ -83,7 +83,7 @@ func clearByRequestType(appName string, processType string, requestType string) func setRequestType(appName string, processType string, r Resource, requestType string) error { if len(processType) == 0 { - processType = "_all_" + processType = "_default_" } resources := map[string]string{ @@ -116,7 +116,7 @@ func setRequestType(appName string, processType string, r Resource, requestType message = fmt.Sprintf("Setting default resource %v", noun) } - if processType != "_all_" { + if processType != "_default_" { message = fmt.Sprintf("%v (%v)", message, processType) } common.LogInfo2Quiet(message) @@ -147,7 +147,7 @@ func reportRequestType(appName string, processType string, requestType string) { humanAppName = "default" } message := fmt.Sprintf("resource %v %v information", noun, humanAppName) - if processType != "_all_" { + if processType != "_default_" { message = fmt.Sprintf("%v (%v)", message, processType) } common.LogInfo2Quiet(message)