On 05/07/2010 11:59 AM, [email protected] wrote:
> sorry i should have specified... the reason I am surprised is that I
> don't return an instance for these methods in the terremark driver and
> didn't come accross any problems using it with core (deltacloudd -i
> terremark). Having said that I think it does make sense that these
> methods would return an instance object (in fact I initially did this
> and then changed it to no return value after looking at other drivers),
Well, I was just going by the code in server.rb:
def instance_action(name)
@instance = driver.send(:"#{name}_instance", credentials, params[:id])
respond_to do |format|
format.html { haml :"instances/show" }
format.xml { haml :"instances/show" }
format.json {convert_to_json(:instance, @instance) }
end
end
Indeed, the error I was getting was from the haml, because it was trying
to perform methods on a "nil" instance object. I'm surprised you never
saw any problems with the terremark driver. I will say that without this
in place, the methods still "work"; the action is performed, but they
cause a backtrace in the server and hence a timeout in the client.
All of that being said, HAML/sinatra/rabbit/etc is all very new to me, so
I surely could be mis-interpreting things.
--
Chris Lalancette
_______________________________________________
deltacloud-devel mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/deltacloud-devel