From 80f41b766b4ef56466653a27c2e346c2f8668530 Mon Sep 17 00:00:00 2001 From: Lincoln Stoll Date: Mon, 30 May 2011 15:17:53 +1000 Subject: [PATCH] [vcloud|compute] server creation outside of VDC --- lib/fog/compute/models/vcloud/servers.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fog/compute/models/vcloud/servers.rb b/lib/fog/compute/models/vcloud/servers.rb index 1d07d02cb..7f9925e4d 100644 --- a/lib/fog/compute/models/vcloud/servers.rb +++ b/lib/fog/compute/models/vcloud/servers.rb @@ -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)