Fix 2.4.2 upgrade notes formatting refs #19330
[arvados.git] / apps / workbench / app / controllers / keep_disks_controller.rb
index f57455b37fd6895262267bfc75e2df8e6dced594..c95ebdc25542b2b72bd89f1ef0e1d5ba5ede5c53 100644 (file)
@@ -1,3 +1,7 @@
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
 class KeepDisksController < ApplicationController
   def create
     defaults = { is_readable: true, is_writable: true }
@@ -32,6 +36,7 @@ class KeepDisksController < ApplicationController
     histogram_log = Log.
       filter([[:event_type, '=', 'block-age-free-space-histogram']]).
       order(:created_at => :desc).
+      with_count('none').
       limit(1)
     histogram_log.each do |log_entry|
       # We expect this block to only execute at most once since we