12093: Propagate --project-uuid to runner job inside container.
[arvados.git] / sdk / cwl / arvados_cwl / arvcontainer.py
index bf4aab52fb4b637d2e48161422828f5f5545a021..769a63bce3f56763e7fa1767317d5af9828a03d0 100644 (file)
@@ -1,3 +1,7 @@
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: Apache-2.0
+
 import logging
 import json
 import os
@@ -359,6 +363,9 @@ class RunnerContainer(Runner):
         if self.arvrunner.trash_intermediate:
             command.append("--trash-intermediate")
 
+        if self.arvrunner.project_uuid:
+            command.append("--project-uuid="+self.arvrunner.project_uuid)
+
         command.extend([workflowpath, "/var/lib/cwl/cwl.input.json"])
 
         container_req["command"] = command