From d2ecd7664662735cfdf0bd71d68aa8572591bde8 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Thu, 19 Dec 2019 02:18:01 -0500 Subject: [PATCH] fix: handle case where defaultValue was not properly returned by get-with-default --- plugins/common/properties.go | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/common/properties.go b/plugins/common/properties.go index b4e6d2fa9..cbbf75349 100644 --- a/plugins/common/properties.go +++ b/plugins/common/properties.go @@ -100,6 +100,7 @@ func PropertyGetAll(pluginName string, appName string) (map[string]string, error // PropertyGetDefault returns the value for a given property with a specified default value func PropertyGetDefault(pluginName, appName, property, defaultValue string) (val string) { if !PropertyExists(pluginName, appName, property) { + val = defaultValue return }