mirror of
https://github.com/88lex/sa-gen.git
synced 2024-11-10 09:12:47 +08:00
Update update-display-name
This commit is contained in:
parent
d0ac52d9ff
commit
8c29a6d337
1 changed files with 2 additions and 2 deletions
|
@ -13,9 +13,9 @@ for project in $proj_list;do
|
|||
echo -e "Project name is $project \n"
|
||||
sa_list=`gcloud iam service-accounts list --format='value(email)' | sort`
|
||||
for sa in $sa_list;do
|
||||
sa_name="${sa%@*}_$UNIQUE_ID"
|
||||
sa_name="$UNIQUE_ID${sa%@*}"
|
||||
echo -e "Service Account is $sa"
|
||||
echo -e "Service Account Name is ${sa%@*}"
|
||||
gcloud iam service-accounts update $sa --display-name $sa_name
|
||||
gcloud iam service-accounts update $sa --display-name "$sa_name"
|
||||
done
|
||||
done
|
Loading…
Reference in a new issue