From 5a807d04bc5a668c622e5e0761c2957d6b1d9638 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=83=A1=E7=8E=AE=E6=96=87?= Date: Wed, 25 Dec 2024 11:24:03 +0800 Subject: [PATCH] test: fix external ID started with "-" Avoid being interpreted by aliyun cli as another arg and report: ERROR: parse failed not support flag form -0GXspllxxxxxxxx --- test/cluster/cluster_setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/cluster/cluster_setup.sh b/test/cluster/cluster_setup.sh index 58bbe92bb..a38490ec5 100755 --- a/test/cluster/cluster_setup.sh +++ b/test/cluster/cluster_setup.sh @@ -220,7 +220,7 @@ function create-token-secret { resp=$(aliyun sts AssumeRole --region "$ACK_REGION" \ --DurationSeconds 28800 \ --RoleArn "acs:ram::$uid:role/$CASE_NAME-$1" \ - --ExternalId "$external_id" \ + --ExternalId="$external_id" \ --RoleSessionName "$CASE_NAME") echo "Assumed role ID $(jq -r .AssumedRoleUser.AssumedRoleId <<< "$resp")"