From ec0754b2c19a8eecd4d56ebd9987257fc35ebbd6 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Tue, 18 Nov 2025 16:39:15 +0100 Subject: [PATCH] fix: fix keypair handling in e2e scrip --- test/e2e/e2e.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/e2e/e2e.sh b/test/e2e/e2e.sh index f616b52..056201f 100755 --- a/test/e2e/e2e.sh +++ b/test/e2e/e2e.sh @@ -53,7 +53,7 @@ log_success() { } log_warn() { - printf "[$(date +'%T')] ⚠️ %s\n" "$*" >&2 + printf "[$(date +'%T')] ⚠️ %s\n" "$*" >&2 } log_error() { @@ -191,10 +191,10 @@ update_inventory() { setup_ssh_key() { log "Checking for SSH key '$SSH_KEY_NAME'..." - if ! stackit key-pair describe "$SSH_KEY_NAME" --project-id "$PROJECT_ID" &>/dev/null; then + if ! stackit key-pair describe --public-key "$SSH_KEY_NAME" --project-id "$PROJECT_ID" &>/dev/null; then log "No existing key found. Creating..." # The '@' prefix tells the CLI to read the content from the file - if ! stackit key-pair create --public-key "$SSH_KEY_NAME" -y \ + if ! stackit key-pair create --name "$SSH_KEY_NAME" -y \ --project-id "$PROJECT_ID" \ --public-key "@$HOME/.ssh/$SSH_KEY_NAME.pub"; then log_error "Failed to create SSH key '$SSH_KEY_NAME' in STACKIT."