Skip to content

Commit dfc95bf

Browse files
fix step.options
1 parent 2c8693d commit dfc95bf

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

configuration/builders/infra/runtime.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,17 +106,16 @@ def __init__(
106106
docker_environment: DockerConfig,
107107
container_commit: bool = False,
108108
) -> ShellStep:
109-
super().__init__(name=step.name)
110-
assert isinstance(
111-
step, ShellStep
109+
110+
self.step = copy.deepcopy(step)
111+
super().__init__(name=self.step.name, options=self.step.options
112112
), "InContainer wrapper only works with ShellStep or its subclasses"
113-
self.step = step
114113
self.container_commit = container_commit
115114
self.docker_environment = docker_environment
116115
self.workdir = step.command.workdir
117116

118117
def generate(self) -> IBuildStep:
119-
step = copy.deepcopy(self.step)
118+
step = self.step
120119
cmd_prefix = []
121120
cmd_prefix.append(
122121
[

0 commit comments

Comments
 (0)