From 580d2dc3ee0a7a5e0185efd6271e37b08ace45a0 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Thu, 18 Jan 2024 19:16:13 -0500 Subject: [PATCH] feat: add support for global-only environment properties If a property is only specified globally, it would otherwise be caught later in the check for valid properties. --- plugins/common/properties.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/common/properties.go b/plugins/common/properties.go index 54893ac1e..0935b773d 100644 --- a/plugins/common/properties.go +++ b/plugins/common/properties.go @@ -25,6 +25,12 @@ func CommandPropertySet(pluginName, appName, property, value string, properties LogFail("No property specified") } + for k := range globalProperties { + if _, ok := properties[k]; !ok { + properties[k] = "" + } + } + if _, ok := properties[property]; !ok { properties := reflect.ValueOf(properties).MapKeys() validPropertyList := make([]string, len(properties))