Skip to content

Commit 1d91127

Browse files
committed
Remove uses of to_posix_path
1 parent 426c75f commit 1d91127

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Diff for: samcli/local/docker/container.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,11 @@
3434
DockerContainerCreationFailedException,
3535
PortAlreadyInUse,
3636
)
37-
from samcli.local.docker.utils import NoFreePortsError, find_free_port, to_posix_path
37+
from samcli.local.docker.utils import NoFreePortsError, find_free_port
3838

3939
LOG = logging.getLogger(__name__)
4040

41+
4142
CONTAINER_CONNECTION_TIMEOUT = float(os.environ.get("SAM_CLI_CONTAINER_CONNECTION_TIMEOUT", 20))
4243
DEFAULT_CONTAINER_HOST_INTERFACE = "127.0.0.1"
4344

@@ -210,9 +211,6 @@ def create(self):
210211
if self._additional_volumes:
211212
kwargs["volumes"].update(self._additional_volumes)
212213

213-
# Make sure all mounts are of posix path style.
214-
kwargs["volumes"] = {to_posix_path(host_dir): mount for host_dir, mount in kwargs["volumes"].items()}
215-
216214
if self._env_vars:
217215
kwargs["environment"] = self._env_vars
218216

0 commit comments

Comments
 (0)