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

allow userdata to be passed to Rackspace AutoScale

This commit is contained in:
Thom May 2014-08-26 15:13:03 +01:00
parent ceee958656
commit 0aa72c23fe

View file

@ -60,6 +60,8 @@ module Fog
}
server_template["personality"] = attributes[:personality] if attributes[:personality]
server_template["user_data"] = [attributes[:user_data]].pack('m') if attributes[:user_data]
server_template["config_drive"] = 'true' if attributes[:config_drive]
server_template["networks"] = networks_to_hash(attributes[:networks]) if attributes[:networks]
server_template
end