lib/command/run.rb in cpl-1.0.2 vs lib/command/run.rb in cpl-1.0.3
- old
+ new
@@ -97,11 +97,11 @@
spec["defaultOptions"]["autoscaling"]["maxScale"] = 1
spec["defaultOptions"]["capacityAI"] = false
# Override image if specified
image = config.options[:image]
- image = "/org/#{config.org}/image/#{latest_image}" if image == "latest"
- container_spec["image"] = image if image
+ image = latest_image if image == "latest"
+ container_spec["image"] = "/org/#{config.org}/image/#{image}"
# Set runner
container_spec["env"] ||= []
container_spec["env"] << { "name" => "CONTROLPLANE_RUNNER", "value" => runner_script }