File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ log_success() {
5353}
5454
5555log_warn () {
56- printf " [$( date +' %T' ) ] ⚠️ %s\n" " $* " >&2
56+ printf " [$( date +' %T' ) ] ⚠️ %s\n" " $* " >&2
5757}
5858
5959log_error () {
@@ -191,10 +191,10 @@ update_inventory() {
191191setup_ssh_key () {
192192 log " Checking for SSH key '$SSH_KEY_NAME '..."
193193
194- if ! stackit key-pair describe " $SSH_KEY_NAME " --project-id " $PROJECT_ID " & > /dev/null; then
194+ if ! stackit key-pair describe --public-key " $SSH_KEY_NAME " --project-id " $PROJECT_ID " & > /dev/null; then
195195 log " No existing key found. Creating..."
196196 # The '@' prefix tells the CLI to read the content from the file
197- if ! stackit key-pair create --public-key " $SSH_KEY_NAME " -y \
197+ if ! stackit key-pair create --name " $SSH_KEY_NAME " -y \
198198 --project-id " $PROJECT_ID " \
199199 --public-key " @$HOME /.ssh/$SSH_KEY_NAME .pub" ; then
200200 log_error " Failed to create SSH key '$SSH_KEY_NAME ' in STACKIT."
You can’t perform that action at this time.
0 commit comments