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: get containerId when getting matched container #144

Merged
merged 1 commit into from
Nov 29, 2022

Conversation

NigelWu95
Copy link

@NigelWu95 NigelWu95 commented Mar 25, 2022

Describe what this PR does / why we need it

fix containerId getting when getting matched container to avoid nill pointer problem.

Signed-off-by: NigelWu95 bingheng.wbh@antgroup.com

Does this pull request fix one issue?

#141

Describe how you did it

Describe how to verify it

Special notes for reviews

…container.

Signed-off-by: NigelWu95 <bingheng.wbh@antgroup.com>
@zousheng
Copy link

zousheng commented Apr 2, 2022

could you please describe what is the condition that can cause the empty. container id ?

@NigelWu95
Copy link
Author

could you please describe what is the condition that can cause the empty. container id ?

If target container's status is not running, the containerId can not be obtained, so that [:12] will be out of bound.

@NigelWu95 NigelWu95 closed this May 16, 2022
@NigelWu95 NigelWu95 reopened this May 18, 2022
@NigelWu95 NigelWu95 closed this May 18, 2022
@NigelWu95 NigelWu95 reopened this May 18, 2022
@MandssS MandssS merged commit 38104c7 into chaosblade-io:master Nov 29, 2022
@MandssS MandssS added this to the v1.7.1 milestone Nov 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants