Merge pull request #6446 from dokku/global-only-properties

Add support for global-only environment properties
This commit is contained in:
Jose Diaz-Gonzalez
2024-01-18 20:46:24 -05:00
committed by GitHub

View File

@@ -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))