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

[openstack|compute] added key_name and security_groups in boot from snapshot request

This commit is contained in:
Philip Mark M. Deazeta 2012-04-19 13:44:52 +08:00 committed by Nelvin Driz
parent 31e92bb18d
commit b0263c1ecf

View file

@ -12,7 +12,8 @@ module Fog
}
vanilla_options = ['metadata', 'accessIPv4', 'accessIPv6',
'availability_zone', 'user_data', 'block_device_mapping']
'availability_zone', 'user_data', 'block_device_mapping',
'key_name', 'security_groups']
vanilla_options.select{|o| options[o]}.each do |key|
data['server'][key] = options[key]
end