Merge branch '20529-container-deadlocks' refs #20529
[arvados.git] / services / api / app / controllers / arvados / v1 / container_requests_controller.rb
index b57f09a6a1ee2748d6ca40a43ea709cd0e64b4d8..6b6e96a1f71cb4f86444c74d720a8eb19711004a 100644 (file)
@@ -32,7 +32,7 @@ class Arvados::V1::ContainerRequestsController < ApplicationController
   end
 
   def update
-    if (resource_attrs.keys - [:owner_uuid, :name, :description, :properties]).empty? or @object.container_uuid.nil?
+    if (resource_attrs.keys.map(&:to_sym) - [:owner_uuid, :name, :description, :properties]).empty? or @object.container_uuid.nil?
       # If no attributes are being updated besides these, there are no
       # cascading changes to other rows/tables, the only lock will be
       # the single row lock on SQL UPDATE.