Fix incorrect pre-create container name in up logs

Signed-off-by: Joffrey F <joffrey@docker.com>
This commit is contained in:
Joffrey F 2018-11-28 14:19:21 -08:00
parent bffb6094da
commit f266e3459d
1 changed files with 3 additions and 5 deletions

View File

@ -129,7 +129,7 @@ class NoSuchImageError(Exception):
pass
ServiceName = namedtuple('ServiceName', 'project service number slug')
ServiceName = namedtuple('ServiceName', 'project service number')
ConvergencePlan = namedtuple('ConvergencePlan', 'action containers')
@ -445,13 +445,11 @@ class Service(object):
containers, errors = parallel_execute(
[
ServiceName(self.project, self.name, index, generate_random_id())
ServiceName(self.project, self.name, index)
for index in range(i, i + scale)
],
lambda service_name: create_and_start(self, service_name.number),
lambda service_name: self.get_container_name(
service_name.service, service_name.number, service_name.slug
),
lambda service_name: self.get_container_name(service_name.service, service_name.number),
"Creating"
)
for error in errors.values():