Merge branch '16838-probe-metrics' into master
[arvados.git] / apps / workbench / app / models / container.rb
index 0a7c288718f581f89235cb9a9fed9fdcd76d1d8e..8de28ae41f85052ca90fc47c5f4d8ba4d6979cee 100644 (file)
@@ -1,9 +1,13 @@
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
 class Container < ArvadosBase
   def self.creatable?
     false
   end
 
-  def work_unit(label=nil)
-    ContainerWorkUnit.new(self, label)
+  def work_unit(label=nil, child_objects=nil)
+    ContainerWorkUnit.new(self, label, self.uuid, child_objects=child_objects)
   end
 end