Removed fallback

Assumed `gcloud config configurations list [configuration]` was working before, which is not the case.
This commit is contained in:
Tim Ysewyn 2021-04-04 16:42:10 +02:00 committed by GitHub
parent 3c746082fe
commit 53fd191d10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 3 deletions

View File

@ -4505,9 +4505,6 @@ _p9k_gcloud_prefetch() {
if ! _p9k_cache_stat_get $0 ~/.config/gcloud/configurations/config_$P9K_GCLOUD_CONFIGURATION; then
local pair account project_id
pair="$(gcloud config configurations list --configuration $P9K_GCLOUD_CONFIGURATION \
--format=$'value[separator="\1"](properties.core.account,properties.core.project)' \
--filter=is_active:true 2>/dev/null)"
(( $? )) && pair="$(gcloud config configurations list $P9K_GCLOUD_CONFIGURATION \
--format=$'value[separator="\1"](properties.core.account,properties.core.project)' \
--filter=is_active:true)"
(( ! $? )) && IFS=$'\1' read account project_id <<<$pair