Fix Jinja2 escaping in minikube-metrics template
The {{.Host}} Go template syntax was being interpreted by Jinja2.
Added {% raw %} block to escape it.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
3337392b55
commit
09983b3ae0
1 changed files with 1 additions and 1 deletions
|
|
@ -22,7 +22,7 @@ cat > "$TEMP_FILE" << 'HEADER'
|
|||
HEADER
|
||||
|
||||
# Check if minikube is running
|
||||
if minikube status --format='{{.Host}}' 2>/dev/null | grep -q "Running"; then
|
||||
if minikube status --format='{% raw %}{{.Host}}{% endraw %}' 2>/dev/null | grep -q "Running"; then
|
||||
echo "minikube_up 1" >> "$TEMP_FILE"
|
||||
else
|
||||
echo "minikube_up 0" >> "$TEMP_FILE"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue