Skip to content

Commit 83c50dc

Browse files
authored
fix 'got types.Null, expected iterable type' error (#11124)
* fix 'got types.Null, expected iterable type' error * add pr link to changelog
1 parent b7382c7 commit 83c50dc

File tree

6 files changed

+10
-5
lines changed

6 files changed

+10
-5
lines changed

packages/wiz/changelog.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
# newer versions go on top
2+
- version: "1.8.1"
3+
changes:
4+
- description: Fix potential `got types.Null, expected iterable type` error.
5+
type: bugfix
6+
link: https://github.com/elastic/integrations/pull/11124
27
- version: "1.8.0"
38
changes:
49
- description: Add host.name for the vulnerability data stream.

packages/wiz/data_stream/audit/agent/stream/cel.yml.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ program: |
7575
}
7676
}.encode_json()
7777
).do_request().as(resp, resp.StatusCode == 200 ?
78-
bytes(resp.Body).decode_json().as(body, has(body.?data.auditLogEntries.nodes) ?
78+
bytes(resp.Body).decode_json().as(body, body.?data.auditLogEntries.nodes.orValue(null) != null ?
7979
{
8080
"events": body.data.auditLogEntries.nodes.map(e, {
8181
"message": e.encode_json(),

packages/wiz/data_stream/cloud_configuration_finding/agent/stream/cel.yml.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ program: |
9696
}
9797
}.encode_json()
9898
).do_request().as(resp, resp.StatusCode == 200 ?
99-
bytes(resp.Body).decode_json().as(body, has(body.?data.configurationFindings.nodes) ?
99+
bytes(resp.Body).decode_json().as(body, body.?data.configurationFindings.nodes.orValue(null) != null ?
100100
{
101101
"events": body.data.configurationFindings.nodes.map(e, {
102102
"message": e.encode_json(),

packages/wiz/data_stream/issue/agent/stream/cel.yml.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ program: |
143143
}
144144
}.encode_json()
145145
).do_request().as(resp, resp.StatusCode == 200 ?
146-
bytes(resp.Body).decode_json().as(body, has(body.?data.issues.nodes) ?
146+
bytes(resp.Body).decode_json().as(body, body.?data.issues.nodes.orValue(null) != null ?
147147
{
148148
"events": body.data.issues.nodes.map(e, {
149149
"message": e.encode_json(),

packages/wiz/data_stream/vulnerability/agent/stream/cel.yml.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ program: |
147147
}
148148
}.encode_json()
149149
).do_request().as(resp, resp.StatusCode == 200 ?
150-
bytes(resp.Body).decode_json().as(body, has(body.?data.vulnerabilityFindings.nodes) ?
150+
bytes(resp.Body).decode_json().as(body, body.?data.vulnerabilityFindings.nodes.orValue(null) != null ?
151151
{
152152
"events": body.data.vulnerabilityFindings.nodes.map(e, {
153153
"message": e.encode_json(),

packages/wiz/manifest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
format_version: 3.0.2
22
name: wiz
33
title: Wiz
4-
version: "1.8.0"
4+
version: "1.8.1"
55
description: Collect logs from Wiz with Elastic Agent.
66
type: integration
77
categories:

0 commit comments

Comments
 (0)