lib/kitchen/provisioner/nodes.rb in kitchen-nodes-0.3.2 vs lib/kitchen/provisioner/nodes.rb in kitchen-nodes-0.3.3
- old
+ new
@@ -82,10 +82,12 @@
def active_ips(transport, state)
# inject creds into state for legacy drivers
[:username, :password].each do |prop|
state[prop] = instance.driver[prop] if instance.driver[prop]
end
- IpFinder.for_transport(transport, state).find_ips
+ ips = IpFinder.for_transport(transport, state).find_ips
+ fail 'Unable to retrieve IPs' if ips.empty?
+ ips
end
end
end
end