fix yaml json mixup

This commit is contained in:
viessm_h committed 2026-05-21 14:04:31 +02:00
1 parent fd89d76e15
commit 03147e5ed1
14 files changed
+3 -3

No files matched your search

File renamed without changes.
File renamed without changes.
File renamed without changes.
+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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.