fix yaml json mixup
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user