Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CGroup parsing for non-containerized environment. #1480

Merged
merged 1 commit into from
Apr 27, 2021

Conversation

delner
Copy link
Contributor

@delner delner commented Apr 22, 2021

Fixes #1475

Our container parsing code was raising an error when encountering cgroup paths that weren't in containerized environments; although the defensive measure in place was working as intended, this pull request prevents that error and makes CI assert no such error is raised.

@delner delner added bug Involves a bug core Involves Datadog core libraries community Was opened by a community member labels Apr 22, 2021
@delner delner requested a review from marcotc April 22, 2021 15:40
@delner delner self-assigned this Apr 22, 2021
@delner delner requested a review from a team April 22, 2021 15:40
@delner delner added this to In review in Active work Apr 22, 2021
@delner
Copy link
Contributor Author

delner commented Apr 22, 2021

Thanks to @collinsauve for his contribution originally in #1476! Added it to this PR.

@delner delner merged commit 3521771 into master Apr 27, 2021
Active work automation moved this from In review to Merged & awaiting release Apr 27, 2021
@delner delner deleted the fix/container_parsing_empty_path branch April 27, 2021 19:36
@github-actions github-actions bot added this to the 0.49.0 milestone Apr 27, 2021
@ivoanjo ivoanjo moved this from Merged & awaiting release to Released in Active work Aug 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Involves a bug community Was opened by a community member core Involves Datadog core libraries
Projects
Active work
  
Released
Development

Successfully merging this pull request may close these issues.

Error while parsing container info. Cause: undefined method `[]' for nil:NilClass
3 participants