Thanks to visit codestin.com
Credit goes to github.com

Skip to content

SshConfig / SshOptions in config files don't allow a single word #113

@crazyscot

Description

@crazyscot

Describe the bug
These options are surprisingly rejected when they contain a single word or a single quoted string.

Version(s) Affected
v0.2.0 - v0.4.0

To Reproduce
Steps to reproduce the behavior:

  1. Set up a config file containing SshConfig hello or SshConfig "hi there" (or the same with SshOptions)
  2. Attempt to qcp a file somewhere, you get this error:
Error: invalid type: found string "hi", expected a sequence for key `ssh_config` of host `some-host` at /home/wry/.qcp.conf (line 2)

Expected behavior
Config should be accepted and used appropriately (in this case, a warning that the given config file was not found).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions