I work at RimuHosting and am currently working on getting a deltacloud driver coded for our api. I'm pretty interested in this project so if I can find time I would like to contribute more than just our driver.
I've had the framework server up and running with what I've done.
After looking at the base driver I saw why..
def flavor(credentials, opts)
flavors = flavors(credentials, opts)
return flavors.first unless flavors.empty?
nil
end
That will always return the first flavor. I overrode it in my driver to look like
def flavor(credentials, opts=nil)
flav = flavors(credentials, opts)
flav.each { |x| return x if
x.id == opts[:id] }
nil
end
and it worked properly.
My question really is, Is the flavor method just not implemented fully yet, or am I missing something :). And if its not implemented yet, I guess you would take patches? (I'm not sure if what I did was OK, this is my first attempt at ruby.)
Regards, Ivan Meredith
RimuHosting