15295: Needs locks_count
[arvados.git] / services / api / app / controllers / arvados / v1 / containers_controller.rb
index fc5614d9446e014a9b32fea548d33e53d57a6571..c730c87b52bfbf721ab988bb92b81792ab3a5c4f 100644 (file)
@@ -39,7 +39,7 @@ class Arvados::V1::ContainersController < ApplicationController
     super
     if action_name == 'lock' || action_name == 'unlock'
       # Avoid loading more fields than we need
-      @objects = @objects.select(:id, :uuid, :state, :priority, :auth_uuid, :locked_by_uuid)
+      @objects = @objects.select(:id, :uuid, :state, :priority, :auth_uuid, :locked_by_uuid, :lock_count)
       @select = %w(uuid state priority auth_uuid locked_by_uuid)
     end
   end