Skip to content

Commit

Permalink
Use iam-policy value for EMAIL if case-sensitive. (kubeflow#1937)
Browse files Browse the repository at this point in the history
  • Loading branch information
IMBurbank authored and k8s-ci-robot committed Nov 15, 2018
1 parent 92e505d commit 8abaeda
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions scripts/kfctl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,14 @@ parseArgs() {
echo "or by setting a default account in gcloud config"
exit 1
fi
# Use iam-policy value for EMAIL if case-sensitive
EM_LIST="$(gcloud projects get-iam-policy $PROJECT | grep -io $EMAIL)"
for em in $EM_LIST; do
if [ "$em" != "$EMAIL" ]; then
EMAIL=$em
break
fi
done
fi
fi
}
Expand Down

0 comments on commit 8abaeda

Please sign in to comment.