mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[aws|compute] Check if security groups is empty in run_instances
This commit is contained in:
parent
6f2ce0d895
commit
5f512998f9
1 changed files with 2 additions and 2 deletions
|
@ -87,8 +87,8 @@ module Fog
|
|||
end
|
||||
end
|
||||
end
|
||||
if security_groups = [*options.delete('SecurityGroup')]
|
||||
options.merge!(AWS.indexed_param('SecurityGroup', security_groups))
|
||||
if security_groups = options.delete('SecurityGroup')
|
||||
options.merge!(AWS.indexed_param('SecurityGroup', [*security_groups]))
|
||||
end
|
||||
if options['UserData']
|
||||
options['UserData'] = Base64.encode64(options['UserData'])
|
||||
|
|
Loading…
Reference in a new issue