-
Notifications
You must be signed in to change notification settings - Fork 207
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ECS Service Discovery: Fixup implicit network mode
I originally submitted #330 with the goal of correcting the service discovery behavior of a task when its definition did not specify a network mode. Very graciously, @javabrett submitted a fix for this via #335. Upon testing this out today, I found out we're not _quite_ there. Crucially, when network mode is undefined in a task definition, it will parse as `nil`, not the empty string. Correcting this in our unit tests reveals the behavior isn't working as desired, since the `getPrivateIp` function isn't properly handling the `nil` case. I believe this addresses the issue.
- Loading branch information
Will Myers
committed
Feb 28, 2022
1 parent
c2219fa
commit c70d7bb
Showing
2 changed files
with
12 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters