Skip to content

Commit

Permalink
Add delete SSH key functionality
Browse files Browse the repository at this point in the history
autohat should clean up adfter itself

change-type: patch
  • Loading branch information
ab77 committed Aug 20, 2024
1 parent f533941 commit c45c753
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion resources/resincli.robot
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ Add new SSH key with name "${key_name}"
Log all output: ${result.stdout}
Run Process balena key rm ${result.stdout} -y shell=yes
END
${result} = Run Process cat /root/.ssh/id_ecdsa.pub | balena key add test shell=yes timeout=60sec
${result} = Run Process cat /root/.ssh/id_ecdsa.pub | balena key add "${key_name}" shell=yes timeout=60sec
Process ${result}

Delete SSH key with name "${key_name}"
${result} = Run Process balena key rm ${key_name} --yes shell=yes
Process ${result}

Create application "${application_name}" with device type "${device}"
Expand Down

0 comments on commit c45c753

Please sign in to comment.