mirror of https://github.com/docker/compose.git
Merge pull request #6381 from docker/incorrect_precreate_identifier
Fix incorrect pre-create container name in up logs
This commit is contained in:
commit
dd927e0fdd
|
@ -129,7 +129,7 @@ class NoSuchImageError(Exception):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
ServiceName = namedtuple('ServiceName', 'project service number slug')
|
ServiceName = namedtuple('ServiceName', 'project service number')
|
||||||
|
|
||||||
|
|
||||||
ConvergencePlan = namedtuple('ConvergencePlan', 'action containers')
|
ConvergencePlan = namedtuple('ConvergencePlan', 'action containers')
|
||||||
|
@ -447,13 +447,11 @@ class Service(object):
|
||||||
|
|
||||||
containers, errors = parallel_execute(
|
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)
|
for index in range(i, i + scale)
|
||||||
],
|
],
|
||||||
lambda service_name: create_and_start(self, service_name.number),
|
lambda service_name: create_and_start(self, service_name.number),
|
||||||
lambda service_name: self.get_container_name(
|
lambda service_name: self.get_container_name(service_name.service, service_name.number),
|
||||||
service_name.service, service_name.number, service_name.slug
|
|
||||||
),
|
|
||||||
"Creating"
|
"Creating"
|
||||||
)
|
)
|
||||||
for error in errors.values():
|
for error in errors.values():
|
||||||
|
|
Loading…
Reference in New Issue