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

[vcloud|compute] server creation outside of VDC

This commit is contained in:
Lincoln Stoll 2011-05-30 15:17:53 +10:00
parent a384c21cdd
commit 80f41b766b

View file

@ -13,7 +13,6 @@ module Fog
attribute :href, :aliases => :Href
def all
self.href = connection.default_vdc_href unless self.href
check_href!(:parent => "Vdc")
load(_vapps)
end
@ -27,6 +26,7 @@ module Fog
end
def create( catalog_item_uri, options )
check_href!
options[:vdc_uri] = href
data = connection.instantiate_vapp_template( catalog_item_uri, options ).body
object = new(data)