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

Add array coalesce

If there are no entries for the server then it returns null,
but the code expects an array. Make it so.
This commit is contained in:
Mike Moore 2013-07-03 01:15:03 -06:00
parent 2b284849a9
commit bac2b78307

View file

@ -23,7 +23,7 @@ module Fog
groups = if server_id then
server_group_names =
self.data[:server_security_group_map][server_id]
Array(self.data[:server_security_group_map][server_id])
server_group_names.map do |name|
security_groups.find do |sg|