Removed fallback
Assumed `gcloud config configurations list [configuration]` was working before, which is not the case.
This commit is contained in:
parent
3c746082fe
commit
53fd191d10
|
@ -4505,9 +4505,6 @@ _p9k_gcloud_prefetch() {
|
||||||
if ! _p9k_cache_stat_get $0 ~/.config/gcloud/configurations/config_$P9K_GCLOUD_CONFIGURATION; then
|
if ! _p9k_cache_stat_get $0 ~/.config/gcloud/configurations/config_$P9K_GCLOUD_CONFIGURATION; then
|
||||||
local pair account project_id
|
local pair account project_id
|
||||||
pair="$(gcloud config configurations list --configuration $P9K_GCLOUD_CONFIGURATION \
|
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)' \
|
--format=$'value[separator="\1"](properties.core.account,properties.core.project)' \
|
||||||
--filter=is_active:true)"
|
--filter=is_active:true)"
|
||||||
(( ! $? )) && IFS=$'\1' read account project_id <<<$pair
|
(( ! $? )) && IFS=$'\1' read account project_id <<<$pair
|
||||||
|
|
Loading…
Reference in New Issue