Skip to content

Commit eb939cb

Browse files
committed
fix(env): Small fixes for import command
1 parent 78b4128 commit eb939cb

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/dda/cli/env/dev/fs/import/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,7 @@ def cmd(
5656
)
5757
status = env.status()
5858

59-
# TODO: This might end up depending on the environment type.
60-
# For `linux-container` though, `docker cp` also works on stopped containers.
61-
possible_states = {EnvironmentState.STARTED, EnvironmentState.STOPPED}
59+
possible_states = {EnvironmentState.STARTED}
6260
if status.state not in possible_states:
6361
app.abort(
6462
f"Developer environment `{env_type}` is in state `{status.state}`, must be one of: "

src/dda/env/dev/types/linux_container.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ def import_files(
505505
"dev",
506506
"fs",
507507
"localimport",
508-
temp_dir.as_posix(), # Source = shared directory in the dev env
508+
f"/.shared/{temp_dir.name}", # Source = shared directory in the dev env
509509
destination, # Destination = final destination in the dev env
510510
str(recursive),
511511
str(force),

0 commit comments

Comments
 (0)