filebeat: fix check against nil
Signed-off-by: Florian Lehner [email protected]
What does this PR do?
This PR fixes bugs of incorrect checks.
Checklist
- [x] My code follows the style guidelines of this project
- [ ] ~~I have commented my code, particularly in hard-to-understand areas~~ no relevant code changes
- [ ] ~~I have made corresponding changes to the documentation~~ no relevant code changes
- [ ] ~~I have made corresponding change to the default configuration files~~ no relevant code changes
- [ ] ~~I have added tests that prove my fix is effective or that my feature works~~ existing tests cover the relevant changes
- [ ] ~~I have added an entry in
CHANGELOG.next.asciidocorCHANGELOG-developer.next.asciidoc.~~ no relevant code changes
This pull request does not have a backport label. If this is a bug or security fix, could you label this PR @florianl? 🙏. For such, you'll need to label your PR with:
- The upcoming major version of the Elastic Stack
- The upcoming minor version of the Elastic Stack (if you're not pushing a breaking change)
To fixup this pull request, you need to add the backport labels for the needed branches, such as:
backport-v8./d.0is the label to automatically backport to the8./dbranch./dis the digit
Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane)
Checked reported linting errors. They are not related to the proposed changes in this PR.
:green_heart: Build Succeeded
the below badges are clickable and redirect to their specific view in the CI or DOCS
![]()
![]()
![]()
![]()
![]()
Expand to view the summary
Build stats
-
Start Time: 2022-09-15T07:35:55.159+0000
-
Duration: 70 min 54 sec
Test stats :test_tube:
| Test | Results |
|---|---|
| Failed | 0 |
| Passed | 6857 |
| Skipped | 737 |
| Total | 7594 |
:green_heart: Flaky test report
Tests succeeded.
:robot: GitHub comments
To re-run your PR in the CI, just comment with:
-
/test: Re-trigger the build. -
/package: Generate the packages and run the E2E tests. -
/beats-tester: Run the installation tests with beats-tester. -
runelasticsearch-ci/docs: Re-trigger the docs validation. (use unformatted text in the comment!)
friendly ping @belimawr
I don't have permission to merge this PR. @belimawr - maybe you can merge it?
Otherwise I will close this PR in a few days, if there is no interest.