resource-agents/SOURCES/bz1691456-gcloud-dont-detect-python2.patch

15 lines
406 B
Diff
Raw Permalink Normal View History

2022-03-29 20:23:05 +00:00
--- a/bundled/gcp/google-cloud-sdk/bin/gcloud 1980-01-01 09:00:00.000000000 +0100
+++ b/bundled/gcp/google-cloud-sdk/bin/gcloud 2021-10-14 11:30:17.726138166 +0200
@@ -128,6 +128,11 @@
fi
}
2019-08-01 17:41:20 +00:00
2022-03-29 20:23:05 +00:00
+if [ -z "$CLOUDSDK_PYTHON" ]; then
2019-08-01 17:41:20 +00:00
+ CLOUDSDK_PYTHON="/usr/libexec/platform-python"
2022-03-29 20:23:05 +00:00
+ CLOUDSDK_PYTHON_SITEPACKAGES=1
+fi
+
setup_cloudsdk_python
2019-08-01 17:41:20 +00:00
# $PYTHONHOME can interfere with gcloud. Users should use