From 1a5ec2ce206ce639fc6857f7127b6a52b55da2d2 Mon Sep 17 00:00:00 2001 From: Dan McPherson Date: Tue, 22 Apr 2025 19:27:23 -0400 Subject: [PATCH] Fix floating ip add for ibm cloud There was an extra INSTANCE_NAME being passed so the command would only work if the instance name and floating ip names were the same. Co-authored-by: RobotSail <97077423+RobotSail@users.noreply.github.com> Signed-off-by: Dan McPherson --- scripts/infra/cloud-instance.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/infra/cloud-instance.sh b/scripts/infra/cloud-instance.sh index 6cbb3a7a3d..21164a5d22 100755 --- a/scripts/infra/cloud-instance.sh +++ b/scripts/infra/cloud-instance.sh @@ -183,7 +183,7 @@ ibm__launch() { echo "Creating IBM Cloud VPC instance..." ibmcloud is instance-create "$INSTANCE_NAME" "$IBM_VPC_ID" "$IBM_ZONE" "${INSTANCE_TYPE:-$IBM_INSTANCE_PROFILE_NAME}" "$IBM_SUBNET_ID" --image "$IBM_IMAGE_ID" --boot-volume '{"name": "boot-vol-attachment-name", "volume": {"name": "boot-vol", "capacity": 200, "profile": {"name": "general-purpose"}}}' --keys "$IBM_KEY_NAME" --pnac-vni-name "$INSTANCE_NAME" echo "Attaching IBM Cloud VNI for new instance..." - ibmcloud is virtual-network-interface-floating-ip-add "$INSTANCE_NAME" "$INSTANCE_NAME" "$IBM_FLOATING_IP_NAME" + ibmcloud is virtual-network-interface-floating-ip-add "$INSTANCE_NAME" "$IBM_FLOATING_IP_NAME" local i i=0 echo "Waiting for instance to be in the 'running' state..."