We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ed3ffc3 commit 234ce95Copy full SHA for 234ce95
1 file changed
components/site-workflows/sensors/sensor-nova-oslo-event.yaml
@@ -28,9 +28,10 @@ spec:
28
name: nova-dep
29
transform:
30
# the event is a string-ified JSON so we need to decode it
31
- # replace the whole event body
+ # replace the whole event body and add a storage_wanted flag
32
jq: |
33
- .body = (.body["oslo.message"] | fromjson)
+ .body = (.body["oslo.message"] | fromjson) |
34
+ .body.storage_wanted = (.body.payload.metadata.storage // "none")
35
filters:
36
# applies each of the items in data with 'and'
37
dataLogicalOperator: "and"
@@ -40,7 +41,7 @@ spec:
40
41
value:
42
- "compute.instance.delete.end"
43
# Only process if storage was wanted
- - path: "body.payload.metadata.storage"
44
+ - path: "body.storage_wanted"
45
type: "string"
46
47
- "wanted"
0 commit comments