You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"mc-agent cli -c list" should not return exit code 0 on error
Currently mc-agent cli -c list always returns exit code 0, even there is some error, so Mooltipass GUI, SSH Keys tab can't distinct empty list of keys from any error occured.
Actual result:
$ mc-agent cli -c list
[]
$ echo $?
0
Now exit code is always 0 no matter what:
Mooltipass device is not connected
Security card is not inserted
Mooltipass is locked
Getting "moolticute ssh keys" wasn't confirmed
Expected result:
Exit code should be non-zero in a case of any error.
Moolticute GUI, "SSH Keys" tab should show an error if SSH Keys was not loaded from a device.
Only absence of "moolticute ssh keys" file is a normal situation and exit code should be 0
if there is no such file on a Mooltipass device (mc-agent wasn't used yet).
The text was updated successfully, but these errors were encountered:
I did some testing (with a Mini BLE), and apparently only the last case Getting "moolticute ssh keys" wasn't confirmed is indistinguishable from the missing file.
"mc-agent cli -c list" should not return exit code 0 on error
Currently
mc-agent cli -c list
always returns exit code 0, even there is some error, so Mooltipass GUI, SSH Keys tab can't distinct empty list of keys from any error occured.Actual result:
Now exit code is always 0 no matter what:
Expected result:
Exit code should be non-zero in a case of any error.
Moolticute GUI, "SSH Keys" tab should show an error if SSH Keys was not loaded from a device.
Only absence of "moolticute ssh keys" file is a normal situation and exit code should be 0
if there is no such file on a Mooltipass device (mc-agent wasn't used yet).
The text was updated successfully, but these errors were encountered: