Merge pull request #531 from josephpage/dockerignore-eof-windows

Windows : fix EOL of .dockerignore file
This commit is contained in:
Joffrey F 2015-03-20 15:56:50 -07:00
commit 96440cccb0
1 changed files with 1 additions and 1 deletions

View File

@ -322,7 +322,7 @@ class Client(requests.Session):
exclude = None
if os.path.exists(dockerignore):
with open(dockerignore, 'r') as f:
exclude = list(filter(bool, f.read().split('\n')))
exclude = list(filter(bool, f.read().splitlines()))
# These are handled by the docker daemon and should not be
# excluded on the client
if 'Dockerfile' in exclude: