Handle missing (not built) service image in config --hash

Signed-off-by: Joffrey F <joffrey@docker.com>
This commit is contained in:
Joffrey F 2018-08-07 17:32:31 -07:00
parent 861031b9b7
commit ee878aee4c
3 changed files with 10 additions and 5 deletions

View file

@ -224,7 +224,6 @@ class CLITestCase(DockerClientTestCase):
def test_config_with_hash_option(self):
self.base_dir = 'tests/fixtures/v2-full'
self.project.build()
result = self.dispatch(['config', '--hash=*'])
for service in self.project.get_services():
assert '{} {}\n'.format(service.name, service.config_hash) in result.stdout