|
@@ -2,7 +2,6 @@ from __future__ import print_function
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
|
import logging
|
|
|
-import os
|
|
|
import re
|
|
|
import signal
|
|
|
import sys
|
|
@@ -17,6 +16,7 @@ from .. import __version__
|
|
|
from .. import legacy
|
|
|
from ..config import parse_environment
|
|
|
from ..const import DEFAULT_TIMEOUT
|
|
|
+from ..const import HTTP_TIMEOUT
|
|
|
from ..progress_stream import StreamOutputError
|
|
|
from ..project import ConfigurationError
|
|
|
from ..project import NoSuchService
|
|
@@ -71,7 +71,7 @@ def main():
|
|
|
log.error(
|
|
|
"An HTTP request took too long to complete. Retry with --verbose to obtain debug information.\n"
|
|
|
"If you encounter this issue regularly because of slow network conditions, consider setting "
|
|
|
- "COMPOSE_HTTP_TIMEOUT to a higher value (current value: %s)." % os.environ.get('COMPOSE_HTTP_TIMEOUT', 60)
|
|
|
+ "COMPOSE_HTTP_TIMEOUT to a higher value (current value: %s)." % HTTP_TIMEOUT
|
|
|
)
|
|
|
|
|
|
|