lib/command/run.rb in cpflow-4.0.0 vs lib/command/run.rb in cpflow-4.0.1
- old
+ new
@@ -205,10 +205,10 @@
# Keep ENV synced between original and runner workloads
original_env_str = original_container_spec["env"]&.sort_by { |env| env["name"] }.to_s
env_str = container_spec["env"]&.sort_by { |env| env["name"] }.to_s
if original_env_str != env_str
- container_spec["env"] = original_container_spec["env"]
+ container_spec["env"] = original_container_spec["env"] || []
should_update = true
end
if container_spec["image"] != default_image
container_spec["image"] = default_image