lib/command/ps_start.rb in cpl-1.0.1 vs lib/command/ps_start.rb in cpl-1.0.2
- old
+ new
@@ -40,12 +40,10 @@
def wait_for_ready
progress.puts
@workloads.reverse_each do |workload|
step("Waiting for workload '#{workload}' to be ready", retry_on_failure: true) do
- cp.fetch_workload_deployments(workload)&.dig("items")&.any? do |item|
- item.dig("status", "ready")
- end
+ cp.workload_deployments_ready?(workload, expected_status: true)
end
end
end
end
end