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:
parent
381b24cf49
commit
4e946b4297
1 changed files with 2 additions and 2 deletions
|
@ -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 }
|
||||
|
|
Loading…
Reference in a new issue