Skip to content

add --provider bw reports success even without unlocked session #107

@fionnb

Description

@fionnb

Describe the bug
Adding a key via bw provider reports success, even though the key is not stored.

To Reproduce
Steps to reproduce the behavior:

  1. make sure no open bw session is active: bw lock
  2. Run ssh-manager add --provider bw --name test123 --private-key bla --public-key bla.pub
  3. See message time="xx-yy-2022 22:22:22" level=info msg="Manager Keys saved for test123."
  4. find out no key has been actually stored in bw

Expected behavior
An error message, stating that the key could not be added.

Environment:

  • CLI Version (retrieve with ssh-manager version): ssh-manager v1.1.0
  • Operating System/Architecture: Linux

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