lib/command/run_detached.rb in cpl-1.0.3 vs lib/command/run_detached.rb in cpl-1.0.4
- old
+ new
@@ -89,10 +89,10 @@
spec["defaultOptions"]["capacityAI"] = false
# Override image if specified
image = config.options[:image]
image = latest_image if image == "latest"
- container_spec["image"] = "/org/#{config.org}/image/#{image}"
+ container_spec["image"] = "/org/#{config.org}/image/#{image}" if image
# Set cron job props
spec["type"] = "cron"
spec["job"] = { "schedule" => "* * * * *", "restartPolicy" => "Never" }
spec["defaultOptions"]["autoscaling"] = {}