Fix gcloud CLI (#1342)

This reverts #1324 (d3de2e5).
pull/1362/head
Tim Ysewyn 4 years ago committed by GitHub
parent 8b2aab74d4
commit 8dc91004cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -4504,9 +4504,8 @@ _p9k_gcloud_prefetch() {
P9K_GCLOUD_CONFIGURATION=$_p9k__ret
if ! _p9k_cache_stat_get $0 ~/.config/gcloud/configurations/config_$P9K_GCLOUD_CONFIGURATION; then
local pair account project_id
pair="$(gcloud config configurations list $P9K_GCLOUD_CONFIGURATION \
--format=$'value[separator="\1"](properties.core.account,properties.core.project)' \
--filter=is_active:true)"
pair="$(gcloud config configurations describe $P9K_GCLOUD_CONFIGURATION \
--format=$'value[separator="\1"](properties.core.account,properties.core.project)')"
(( ! $? )) && IFS=$'\1' read account project_id <<<$pair
_p9k_cache_stat_set "$account" "$project_id"
fi

Loading…
Cancel
Save