Fix a bug in ExtendsResolver where the service name of the extended service was wrong.
This bug can be seen by the change to the test case. When the extended service uses a different name, the error was reported incorrectly. By fixing this bug we can simplify self.signature and self.detect_cycles to always use self.service_name. Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
parent
87d79d4d99
commit
3a43110f06
4 changed files with 25 additions and 22 deletions
2
tests/fixtures/extends/circle-2.yml
vendored
2
tests/fixtures/extends/circle-2.yml
vendored
|
|
@ -2,7 +2,7 @@ foo:
|
|||
image: busybox
|
||||
bar:
|
||||
image: busybox
|
||||
web:
|
||||
other:
|
||||
extends:
|
||||
file: circle-1.yml
|
||||
service: web
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue