Skip to content

Commit e6a058d

Browse files
committed
Update nova_boot_cert_auth.sh
1 parent a060208 commit e6a058d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nova_boot_cert_auth.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
1+
#!/bin/bash
22
set -e
33

44
PEM_FILE=winrm_client_cert.pem
@@ -11,7 +11,7 @@ FLAVOR=2
1111
# to overcome Nova's custom metadata length limit
1212
declare -a CERT=(`openssl x509 -inform pem -in "$PEM_FILE" -outform der | base64 -w 0 |sed -r 's/(.{255})/\1\n/g'`)
1313

14-
nova boot --flavor $FLAVOR --image "$IMAGE_NAME" --key-name $KEY1 $INSTANCE_NAME \
14+
nova boot --flavor $FLAVOR --image "$IMAGE_NAME" --key-name $KEY $INSTANCE_NAME \
1515
--meta admin_cert0="${CERT[0]}" \
1616
--meta admin_cert1="${CERT[1]}" \
1717
--meta admin_cert2="${CERT[2]}" \

0 commit comments

Comments
 (0)