From 2a04ed70b6778e79342fc1b54ba394dde5c8cf94 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Fri, 10 Sep 2021 23:02:21 -0400 Subject: [PATCH] fix: do not attempt to sprintf properties Previously, any properties with a % would be formatted using sprintf, causing issues when consuming those values later on. --- plugins/common/properties.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/common/properties.go b/plugins/common/properties.go index 8b7b58b41..1b687b276 100644 --- a/plugins/common/properties.go +++ b/plugins/common/properties.go @@ -434,7 +434,7 @@ func PropertyWrite(pluginName string, appName string, property string, value str } defer file.Close() - fmt.Fprintf(file, value) + fmt.Fprint(file, value) file.Chmod(0600) SetPermissions(propertyPath, 0600) return nil