Fix 2.4.2 upgrade notes formatting refs #19330
[arvados.git] / apps / workbench / app / models / container.rb
index b52313280a3611577e325145c76a8ee2ae2e2b0f..8de28ae41f85052ca90fc47c5f4d8ba4d6979cee 100644 (file)
@@ -1,5 +1,13 @@
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
 class Container < ArvadosBase
-  def work_unit(label=nil)
-    ContainerWorkUnit.new(self, label)
+  def self.creatable?
+    false
+  end
+
+  def work_unit(label=nil, child_objects=nil)
+    ContainerWorkUnit.new(self, label, self.uuid, child_objects=child_objects)
   end
 end