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

Add support for global-only environment properties
This commit is contained in:
Jose Diaz-Gonzalez authored and GitHub committed 2024-01-18 20:46:24 -05:00
commit 8947060fab
1 file changed
+6
+6
View File
@@ -25,6 +25,12 @@ func CommandPropertySet(pluginName, appName, property, value string, properties
LogFail("No property specified") LogFail("No property specified")
} }
for k := range globalProperties {
if _, ok := properties[k]; !ok {
properties[k] = ""
}
}
if _, ok := properties[property]; !ok { if _, ok := properties[property]; !ok {
properties := reflect.ValueOf(properties).MapKeys() properties := reflect.ValueOf(properties).MapKeys()
validPropertyList := make([]string, len(properties)) validPropertyList := make([]string, len(properties))