xlab-si / fog-vcloud-director Goto Github PK
View Code? Open in Web Editor NEWFog for Vmware vCloud Director
License: Other
Fog for Vmware vCloud Director
License: Other
We once supported the old format of passing instantiation parameters which strictly followed the XML elements structure. But with this PR we provide support for a much more intuitive way of providing those parametes, via :networks
.
This issue stands as a reminder that legacy support should be removed in the future.
template.instantiate('webserver', {
vdc_id: "9a06a16b-12c6-44dc-aee1-06aa52262ea3",
network_id: "d5f47bbf-de27-4cf5-aaaa-56772f2ccd17"
}
You will get an error such as this:
NoMethodError: undefined method `each_with_index' for nil:NilClass
...
I am guessing the best fix for this will be to add this code in the populate_uris
method in the same source file:
options[:endpoint] = end_point
options[:source_vms] = [] unless options.key?(:source_vms)
options
end
Or something similar so that field always exists at generation time, even if the consumer does not set it, as when there is only one VM in the vApp.
Backstory:
Hi, when I rebased my core ManageIQ repo to the latest I see certain failure when indexing our STI. Digging deep I found out it's caused by update of this gem to version 0.2.0 in ManageIQ/manageiq-providers-vmware@41b450f , before this commit everything works flawlessly.
Description:
When updated to 0.2.0 my setup fails to import fog/vcloud_director
at all:
require 'fog/vcloud_director'
NameError: uninitialized constant Fog::Compute::VcloudDirector::VappTemplate
Did you mean? Fog::Compute::VcloudDirector::VappTemplates
from /home/______/.rbenv/versions/2.4.4/lib/ruby/gems/2.4.0/gems/fog-vcloud-director-0.2.0/lib/fog/vcloud_director/models/compute/vapp_templates.rb:10:in `<class:VappTemplates>'
from /home/______/.rbenv/versions/2.4.4/lib/ruby/gems/2.4.0/gems/fog-vcloud-director-0.2.0/lib/fog/vcloud_director/models/compute/vapp_templates.rb:6:in `<class:VcloudDirector>'
from /home/______/.rbenv/versions/2.4.4/lib/ruby/gems/2.4.0/gems/fog-vcloud-director-0.2.0/lib/fog/vcloud_director/models/compute/vapp_templates.rb:5:in `<module:Compute>'
from /home/______/.rbenv/versions/2.4.4/lib/ruby/gems/2.4.0/gems/fog-vcloud-director-0.2.0/lib/fog/vcloud_director/models/compute/vapp_templates.rb:4:in `<module:Fog>'
from /home/______/.rbenv/versions/2.4.4/lib/ruby/gems/2.4.0/gems/fog-vcloud-director-0.2.0/lib/fog/vcloud_director/models/compute/vapp_templates.rb:3:in `<top (required)>'
from /home/______/.rbenv/versions/2.4.4/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /home/______/.rbenv/versions/2.4.4/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /home/______/.rbenv/versions/2.4.4/lib/ruby/gems/2.4.0/gems/fog-vcloud-director-0.2.0/lib/fog/vcloud_director.rb:13:in `block in <top (required)>'
from /home/______/.rbenv/versions/2.4.4/lib/ruby/gems/2.4.0/gems/fog-vcloud-director-0.2.0/lib/fog/vcloud_director.rb:13:in `each'
from /home/______/.rbenv/versions/2.4.4/lib/ruby/gems/2.4.0/gems/fog-vcloud-director-0.2.0/lib/fog/vcloud_director.rb:13:in `<top (required)>'
from /home/______/.rbenv/versions/2.4.4/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:133:in `require'
from /home/______/.rbenv/versions/2.4.4/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:133:in `rescue in require'
from /home/______/.rbenv/versions/2.4.4/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:39:in `require'
from (irb):1
from /home/______/.rbenv/versions/2.4.4/bin/irb:11:in `<main>'
It fails using both rails c
console and irb
. Any idea what can be causing it?
Also note that the vapp_template.rb
is present in .../gems/fog-vcloud-director-0.2.0/lib/fog/vcloud_director/models/compute/
, but it's obviously not resolved properly.
Environment:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.