15028: More conformance fixes
[arvados.git] / sdk / cwl / arvados_cwl / arvcontainer.py
index b0dff491f575634e5947637be099c9c570615451..860bd954c6ab23f5a04b72b3d5c2569db87eaa6d 100644 (file)
@@ -225,6 +225,10 @@ class ArvadosContainer(JobBase):
                                                                     runtimeContext.pull_image,
                                                                     runtimeContext.project_uuid)
 
+        network_req, _ = self.get_requirement("NetworkAccess")
+        if network_req:
+            runtime_constraints["API"] = network_req["networkAccess"]
+
         api_req, _ = self.get_requirement("http://arvados.org/cwl#APIRequirement")
         if api_req:
             runtime_constraints["API"] = True