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.
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user