Skip to content

remote modify: validate config options before saving #3552

@shcheklein

Description

@shcheklein

Version:

DVC version: 0.91.1+51fe83
Python version: 3.7.7
Platform: Darwin-18.2.0-x86_64-i386-64bit
Binary: False
Package: None
Supported remotes: azure, gdrive, gs, hdfs, http, https, s3, ssh, oss
Cache: reflink - supported, hardlink - supported, symlink - supported
Filesystem type (cache directory): ('apfs', '/dev/disk1s1')
Repo: dvc, git
Filesystem type (workspace): ('apfs', '/dev/disk1s1')

Reproduce:

(.env) [ivan@ivan ~/Projects/test-gdrive]$ dvc remote add -d drive gdrive://0AIac4JZqHhKmUk9PVA/test90
(.env) [ivan@ivan ~/Projects/test-gdrive]$  dvc remote modify drive gdrive_trash_onlysdsds true

Output:

ERROR: configuration error - config file error: extra keys not allowed @ data['remote']['drive']['grdive_trash_only']

Having any troubles? Hit us up at https://dvc.org/support, we are always happy to help!

Config:

(.env) [ivan@ivan ~/Projects/test-gdrive]$ cat .dvc/config
[core]
    remote = drive
['remote "drive"']
    url = gdrive://0AIac4JZqHhKmUk9PVA/test90
    gdrive_trash_onlysdsds = true

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions