[meraki] Add nil checks for Resty response in Meraki API calls#44193
[meraki] Add nil checks for Resty response in Meraki API calls#44193gpop63 merged 10 commits intoelastic:mainfrom
nil checks for Resty response in Meraki API calls#44193Conversation
|
This pull request is now in conflicts. Could you fix it? 🙏 |
|
This pull request does not have a backport label.
To fixup this pull request, you need to add the backport labels for the needed
|
|
This pull request doesn't have a |
|
@elastic/beats-tech-leads hello, could I get a review please? we had to fix something in the meraki fork that's the reason for the |
@tommyers-elastic could you please check and approve this. |
|
/test |
2 similar comments
|
/test |
|
/test |
|
/test |
) * add checks for resty res object * add changelog entry * fix pr id * de morgans law * check err contents for getDeviceLicenses * update meraki fork * add ByBand nil check --------- Co-authored-by: Ishleen Kaur <102962586+ishleenk17@users.noreply.github.com> (cherry picked from commit 812b877) # Conflicts: # go.mod # go.sum
) * add checks for resty res object * add changelog entry * fix pr id * de morgans law * check err contents for getDeviceLicenses * update meraki fork * add ByBand nil check --------- Co-authored-by: Ishleen Kaur <102962586+ishleenk17@users.noreply.github.com> (cherry picked from commit 812b877) # Conflicts: # go.sum # x-pack/metricbeat/module/meraki/device_health/devices.go
…in Meraki API calls (#44357) * [meraki] Add `nil` checks for Resty response in Meraki API calls (#44193) * add checks for resty res object * add changelog entry * fix pr id * de morgans law * check err contents for getDeviceLicenses * update meraki fork * add ByBand nil check --------- Co-authored-by: Ishleen Kaur <102962586+ishleenk17@users.noreply.github.com> (cherry picked from commit 812b877) # Conflicts: # go.mod # go.sum * fix --------- Co-authored-by: Gabriel Pop <94497545+gpop63@users.noreply.github.com> Co-authored-by: Gabriel Pop <gabriel.pop@elastic.co>
) * add checks for resty res object * add changelog entry * fix pr id * de morgans law * check err contents for getDeviceLicenses * update meraki fork * add ByBand nil check --------- Co-authored-by: Ishleen Kaur <102962586+ishleenk17@users.noreply.github.com> (cherry picked from commit 812b877) # Conflicts: # x-pack/metricbeat/module/meraki/device_health/devices.go
) * add checks for resty res object * add changelog entry * fix pr id * de morgans law * check err contents for getDeviceLicenses * update meraki fork * add ByBand nil check --------- Co-authored-by: Ishleen Kaur <102962586+ishleenk17@users.noreply.github.com> (cherry picked from commit 812b877) # Conflicts: # x-pack/metricbeat/module/meraki/device_health/devices.go
…in Meraki API calls (#44358) * [meraki] Add `nil` checks for Resty response in Meraki API calls (#44193) * add checks for resty res object * add changelog entry * fix pr id * de morgans law * check err contents for getDeviceLicenses * update meraki fork * add ByBand nil check --------- Co-authored-by: Ishleen Kaur <102962586+ishleenk17@users.noreply.github.com> (cherry picked from commit 812b877) # Conflicts: # go.sum # x-pack/metricbeat/module/meraki/device_health/devices.go * fix * fix changelog --------- Co-authored-by: Gabriel Pop <94497545+gpop63@users.noreply.github.com> Co-authored-by: Gabriel Pop <gabriel.pop@elastic.co>
…in Meraki API calls (#44367) * [meraki] Add `nil` checks for Resty response in Meraki API calls (#44193) * add checks for resty res object * add changelog entry * fix pr id * de morgans law * check err contents for getDeviceLicenses * update meraki fork * add ByBand nil check --------- Co-authored-by: Ishleen Kaur <102962586+ishleenk17@users.noreply.github.com> (cherry picked from commit 812b877) # Conflicts: # x-pack/metricbeat/module/meraki/device_health/devices.go * fix changelog --------- Co-authored-by: Gabriel Pop <94497545+gpop63@users.noreply.github.com> Co-authored-by: Gabriel Pop <gabriel.pop@elastic.co>
…n Meraki API calls (#44368) * [meraki] Add `nil` checks for Resty response in Meraki API calls (#44193) * add checks for resty res object * add changelog entry * fix pr id * de morgans law * check err contents for getDeviceLicenses * update meraki fork * add ByBand nil check --------- Co-authored-by: Ishleen Kaur <102962586+ishleenk17@users.noreply.github.com> (cherry picked from commit 812b877) # Conflicts: # x-pack/metricbeat/module/meraki/device_health/devices.go * fix * fix changelog --------- Co-authored-by: Gabriel Pop <94497545+gpop63@users.noreply.github.com> Co-authored-by: Gabriel Pop <gabriel.pop@elastic.co>
Proposed commit message
This PR adds checks for the Resty response object in all Meraki API calls to ensure proper handling of nil responses.
Checklist
CHANGELOG.next.asciidocorCHANGELOG-developer.next.asciidoc.Disruptive User Impact
Author's Checklist
How to test this PR locally
Related issues
Use cases
Screenshots
Logs