Merge "Use python3 when present"

This commit is contained in:
Zuul 2022-04-04 18:02:50 +00:00 committed by Gerrit Code Review
commit 50063c809c
3 changed files with 6 additions and 1 deletions

View File

@ -15,7 +15,7 @@ apiVersion: v1
appVersion: v7.6.2 appVersion: v7.6.2
description: OpenStack-Helm ElasticSearch description: OpenStack-Helm ElasticSearch
name: elasticsearch name: elasticsearch
version: 0.2.15 version: 0.2.16
home: https://www.elastic.co/ home: https://www.elastic.co/
sources: sources:
- https://github.com/elastic/elasticsearch - https://github.com/elastic/elasticsearch

View File

@ -15,6 +15,10 @@ limitations under the License.
set -ex set -ex
if [[ $(which python3) ]]; then
alias python=python3
fi
function create_test_index () { function create_test_index () {
index_result=$(curl ${CACERT_OPTION} -K- <<< "--user ${ELASTICSEARCH_USERNAME}:${ELASTICSEARCH_PASSWORD}" \ index_result=$(curl ${CACERT_OPTION} -K- <<< "--user ${ELASTICSEARCH_USERNAME}:${ELASTICSEARCH_PASSWORD}" \
-XPUT "${ELASTICSEARCH_ENDPOINT}/test_index?pretty" -H 'Content-Type: application/json' -d' -XPUT "${ELASTICSEARCH_ENDPOINT}/test_index?pretty" -H 'Content-Type: application/json' -d'

View File

@ -25,4 +25,5 @@ elasticsearch:
- 0.2.13 Update htk requirements - 0.2.13 Update htk requirements
- 0.2.14 Fix cronjob rendering - 0.2.14 Fix cronjob rendering
- 0.2.15 Fix elasticsearch-data shutdown - 0.2.15 Fix elasticsearch-data shutdown
- 0.2.16 Use python3 for helm tests when possible
... ...