agaliste/permit-ssh

Error when only saving a user locally

Closed this issue · 1 comments

Info

Command:

permit add -u user -k "..."

Output:

Saving user...
User saved successfully
Error: At least IP or AWS Instance with user or key must be set

Expected output:

Saving user...
User saved successfully

Explanation

The user should be saved and the program should close afterward, but an error is thrown instead after saving the user.

Also, permit remove doesn't work cause of the same problem. IP or AWS subcommand is expected when it shouldn't