lib/torpedo/compute/helper.rb in torpedo-1.0.10 vs lib/torpedo/compute/helper.rb in torpedo-1.0.11

- old
+ new

@@ -37,10 +37,11 @@ image_ref = image[:id] end end elsif image_ref.nil? or image_ref.empty? then #take the last image if IMAGE_REF and or IMAGE_NAME aren't set - images = conn.images.sort{|x,y| x[:id] <=> y[:id]} + images = conn.images + raise "Image list is empty." if images.empty? image_ref = images.last[:id].to_s end image_ref