mirror of
https://github.com/rclone/rclone.git
synced 2025-08-09 13:55:15 +02:00
rc: In options/info make FieldName contain a "." if it should be nested
Before this would have Output "FieldName": "ListenAddr" where it actually needs to be set in a sub object "HTTP". After this fix it outputs "FieldName": "HTTP.ListenAddr" to indicate "ListenAddr" needs to be set in the object "HTTP".
This commit is contained in:
@ -139,6 +139,7 @@ func Items(opt any) (items []Item, err error) {
|
||||
if hasTag {
|
||||
newItem.Name = configName + "_" + newItem.Name
|
||||
}
|
||||
newItem.Field = fieldName + "." + newItem.Field
|
||||
items = append(items, newItem)
|
||||
}
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user