fix yaml json mixup

This commit is contained in:
2026-05-21 14:04:31 +02:00
parent fd89d76e15
commit 03147e5ed1
14 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ echo "$alertrules" | jq -c '.items[]' | while read -r line; do
# Store alert rules JSON. Replace ID with null, so that importing
# allows getting a new ID
echo "$line" | jq '.metadata.uid = null | .metadata.name = null' \
> "$EXPORT_DIR/$folder_title/$title.yaml"
> "$EXPORT_DIR/$folder_title/$title.json"
done
+1 -1
View File
@@ -33,7 +33,7 @@ echo "$receivers" | jq -c '.items[]' | while read -r line; do
# Store receivers JSON. Replace ID with null, so that importing
# allows getting a new ID
echo "$line" | jq '.metadata.uid = null | .metadata.name = null' \
> "$EXPORT_DIR/$title.yaml"
> "$EXPORT_DIR/$title.json"
done
+1 -1
View File
@@ -33,7 +33,7 @@ echo "$templategroups" | jq -c '.items[]' | while read -r line; do
# Store template groups JSON. Replace ID with null, so that importing
# allows getting a new ID
echo "$line" | jq '.metadata.uid = null | .metadata.name = null' \
> "$EXPORT_DIR/$title.yaml"
> "$EXPORT_DIR/$title.json"
done