1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

it doesn't throw an error when the launch configuration doesnt exist

This commit is contained in:
Rodrigo Estebanez 2012-03-06 16:53:57 +01:00
parent 381b24cf49
commit 4e946b4297

View file

@ -94,8 +94,8 @@ module Fog
if lc.any?
lc.map do |lc_name|
l_conf = self.data[:launch_configurations].find { |name, data| name == lc_name }
raise Fog::AWS::AutoScaling::NotFound unless l_conf
l_conf[1].dup
#raise Fog::AWS::AutoScaling::NotFound unless l_conf
l_conf[1].dup if l_conf
end.compact
else
self.data[:launch_configurations].map { |lc, values| values.dup }