mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Merge pull request #3130 from thommay/as_cloudinit
[RACKSPACE] allow userdata to be passed to Rackspace AutoScale
This commit is contained in:
commit
22eda9b149
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue