mirror of https://github.com/docker/docs.git
Remove extraneous new lines when building
This commit is contained in:
parent
f89e4bc70f
commit
dd767aef34
|
|
@ -1,6 +1,7 @@
|
||||||
from docker.client import APIError
|
from docker.client import APIError
|
||||||
import logging
|
import logging
|
||||||
import re
|
import re
|
||||||
|
import sys
|
||||||
from .container import Container
|
from .container import Container
|
||||||
|
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
|
@ -126,7 +127,7 @@ class Service(object):
|
||||||
match = re.search(r'Successfully built ([0-9a-f]+)', line)
|
match = re.search(r'Successfully built ([0-9a-f]+)', line)
|
||||||
if match:
|
if match:
|
||||||
image_id = match.group(1)
|
image_id = match.group(1)
|
||||||
print line
|
sys.stdout.write(line)
|
||||||
|
|
||||||
if image_id is None:
|
if image_id is None:
|
||||||
raise BuildError()
|
raise BuildError()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue