1
0
Fork 0
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:
heyryanw 2012-11-08 05:13:15 -08:00
parent 7af36b05dd
commit 99961f32f7
2 changed files with 2 additions and 0 deletions

View file

@ -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

View file

@ -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(