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

api/task: initialize config in hostConfig when it is nil #2249

Merged
merged 1 commit into from
Oct 25, 2019

Conversation

yumex93
Copy link
Contributor

@yumex93 yumex93 commented Oct 24, 2019

Fix the bug that when Config is nil, agent will panic with error panic: assignment to entry in nil map.
The Config attribute in hostConfig can be nil under some situations. For example, if in task definition, for log driver, only secretOptions are specified while options is null.

Summary

Implementation details

Testing

New tests cover the changes:

Description for the changelog

Licensing

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

agent/api/task/task_test.go Outdated Show resolved Hide resolved
@yumex93 yumex93 merged commit 0bd9aab into aws:dev Oct 25, 2019
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.

4 participants