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:
parent
2b284849a9
commit
bac2b78307
1 changed files with 1 additions and 1 deletions
|
@ -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|
|
||||
|
|
Loading…
Add table
Reference in a new issue