Skip to content

Commit 5238344

Browse files
authored
fix: fix key-pair creation in e2e script (#198)
1 parent 9afa1d9 commit 5238344

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/e2e/e2e.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ setup_ssh_key() {
194194
if ! stackit key-pair describe "$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 "$SSH_KEY_NAME" -y \
197+
if ! stackit key-pair create --public-key "$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."

0 commit comments

Comments
 (0)