summaryrefslogtreecommitdiff
path: root/compose/cli/command.py
diff options
context:
space:
mode:
authorJason Pleau <jason@jpleau.ca>2018-04-10 22:11:26 -0400
committerJason Pleau <jason@jpleau.ca>2018-04-10 22:11:26 -0400
commitfd2e9ebf85f9a2d74cb3fbc1bf192411ee53f7a3 (patch)
tree0487341ef91eae2f88572e23103fe4c2e2ec784c /compose/cli/command.py
parent6136c5daf397798bd6f5a4b2e518c3aed482eb21 (diff)
parent19c331f0b3635bd24751a0e05fe26d9ca5f5e80d (diff)
Update upstream source from tag 'upstream/1.21.0'
Update to upstream version '1.21.0' with Debian dir 61b1e7e5bdf2ec0aea565ef76800bbd659b048ac
Diffstat (limited to 'compose/cli/command.py')
-rw-r--r--compose/cli/command.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/compose/cli/command.py b/compose/cli/command.py
index 9fd941bb..8a32a93a 100644
--- a/compose/cli/command.py
+++ b/compose/cli/command.py
@@ -122,12 +122,14 @@ def get_project(project_dir, config_path=None, project_name=None, verbose=False,
)
with errors.handle_connection_errors(client):
- return Project.from_config(project_name, config_data, client)
+ return Project.from_config(
+ project_name, config_data, client, environment.get('DOCKER_DEFAULT_PLATFORM')
+ )
def get_project_name(working_dir, project_name=None, environment=None):
def normalize_name(name):
- return re.sub(r'[^a-z0-9]', '', name.lower())
+ return re.sub(r'[^-_a-z0-9]', '', name.lower())
if not environment:
environment = Environment.from_env_file(working_dir)