fix yaml json mixup
This commit is contained in:
14 files changed
+3
-3
No files matched your search
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -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
|
||||
|
||||
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Reference in new issue
Block a user