mirror of
https://github.com/minio/minio.git
synced 2025-11-12 23:01:39 -05:00
gcs: Check if the given project id argument exists (#4583)
Using GCS resource manager API, check if the provided project id is already created and associated to the current user account.
This commit is contained in:
committed by
Harshavardhana
parent
6b70f429ed
commit
eaa41e4086
@@ -270,7 +270,7 @@ func gcsGatewayMain(ctx *cli.Context) {
|
||||
cli.ShowCommandHelpAndExit(ctx, "gcs", 1)
|
||||
}
|
||||
|
||||
if !isValidGCSProjectID(ctx.Args().First()) {
|
||||
if !isValidGCSProjectIDFormat(ctx.Args().First()) {
|
||||
errorIf(errGCSInvalidProjectID, "Unable to start GCS gateway with %s", ctx.Args().First())
|
||||
cli.ShowCommandHelpAndExit(ctx, "gcs", 1)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user