1
0
Fork 0
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:
Martin Emde 2010-10-04 08:26:34 +08:00 committed by Wesley Beary
parent 6f2ce0d895
commit 5f512998f9

View file

@ -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'])