lib/seira/pods.rb in seira-0.5.0 vs lib/seira/pods.rb in seira-0.5.1
- old
+ new
@@ -93,13 +93,15 @@
exit(1)
elsif existing_pod
existing_pod
elsif dedicated || pod_name.to_s.empty?
Helpers.fetch_pods(context: context, filters: { tier: tier || 'terminal' }).sample
- else
- puts 'Could not find pod to connect to'
- exit(1)
end
+
+ if target_pod.nil?
+ puts 'Could not find pod to connect to'
+ exit(1)
+ end
if dedicated
new_pod = if pod_name.nil?
create_dedicated_pod(target_pod)
else