incubator-deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lut...@apache.org
Subject svn commit: r962335 - /incubator/deltacloud/trunk/server/server.rb
Date Thu, 08 Jul 2010 23:47:04 GMT
Author: lutter
Date: Thu Jul  8 23:47:04 2010
New Revision: 962335

URL: http://svn.apache.org/viewvc?rev=962335&view=rev
Log:
Fixed issue when no Instance object is returned from action

Modified:
    incubator/deltacloud/trunk/server/server.rb

Modified: incubator/deltacloud/trunk/server/server.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/server.rb?rev=962335&r1=962334&r2=962335&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/server.rb (original)
+++ incubator/deltacloud/trunk/server/server.rb Thu Jul  8 23:47:04 2010
@@ -199,7 +199,7 @@ end
 def instance_action(name)
   @instance = driver.send(:"#{name}_instance", credentials, params["id"])
 
-  return redirect(instances_url) if name.eql?(:destroy)
+  return redirect(instances_url) if name.eql?(:destroy) or @instance.class!=Instance
 
   respond_to do |format|
     format.html { haml :"instances/show" }



Mime
View raw message