lib/command/run_detached.rb in cpl-1.1.1 vs lib/command/run_detached.rb in cpl-1.1.2.rc.0
- old
+ new
@@ -102,10 +102,10 @@
container_spec["env"] ||= []
container_spec["env"] << { "name" => "CONTROLPLANE_TOKEN", "value" => ControlplaneApiDirect.new.api_token }
container_spec["env"] << { "name" => "CONTROLPLANE_RUNNER", "value" => runner_script }
# Create workload clone
- cp.apply("kind" => "workload", "name" => one_off, "spec" => spec)
+ cp.apply_hash("kind" => "workload", "name" => one_off, "spec" => spec)
end
def runner_script # rubocop:disable Metrics/MethodLength
script = "echo '-- STARTED RUNNER SCRIPT --'\n"
script += Scripts.helpers_cleanup