mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Adding explicit support for metadata for Rackspace compute_v2.
This commit is contained in:
parent
7af36b05dd
commit
99961f32f7
2 changed files with 2 additions and 0 deletions
|
@ -56,6 +56,7 @@ module Fog
|
|||
requires :name, :image_id, :flavor_id
|
||||
options = {}
|
||||
options[:disk_config] = disk_config unless disk_config.nil?
|
||||
options[:metadata] = metadata unless metadata.nil?
|
||||
data = connection.create_server(name, image_id, flavor_id, 1, 1, options)
|
||||
merge_attributes(data.body['server'])
|
||||
true
|
||||
|
|
|
@ -13,6 +13,7 @@ module Fog
|
|||
}
|
||||
}
|
||||
|
||||
data['server']['metadata'] = options[:metadata] unless options[:metadata].nil?
|
||||
data['server']['OS-DCF:diskConfig'] = options[:disk_config] unless options[:disk_config].nil?
|
||||
|
||||
request(
|
||||
|
|
Loading…
Reference in a new issue