Merge pull request #4144 from owncloud/fix_adoc

fix adoc for slices
This commit is contained in:
Christian Richter
2022-07-08 12:49:49 +02:00
committed by GitHub

View File

@@ -95,7 +95,11 @@ func GetAnnotatedVariables(s interface{}) []ConfigField {
desc = re.ReplaceAllString(desc, "\\$1")
re = regexp.MustCompile(`(\|)`)
v = re.ReplaceAllString(v, "\\$1")
fields = append(fields, ConfigField{EnvVars: td, DefaultValue: v, Description: desc, Type: value.Type().Name()})
typeName := value.Type().Name()
if typeName == "" {
typeName = value.Type().String()
}
fields = append(fields, ConfigField{EnvVars: td, DefaultValue: v, Description: desc, Type: typeName})
case reflect.Ptr:
// PolicySelectors in the Proxy are being skipped atm
// they are not configurable via env vars, if that changes