3698: Add check that output_of refers to an actual component.
authorPeter Amstutz <peter.amstutz@curoverse.com>
Fri, 17 Oct 2014 19:17:01 +0000 (15:17 -0400)
committerPeter Amstutz <peter.amstutz@curoverse.com>
Fri, 17 Oct 2014 19:17:01 +0000 (15:17 -0400)
sdk/cli/bin/arv-run-pipeline-instance

index b70fd7dad62d38445f2b9822e8bf28066eac3bf1..6125343fdcce2b5c36d9367a791df6fe98117bcd 100755 (executable)
@@ -445,7 +445,11 @@ class WhRunPipelineInstance
         if value.nil? and
             ![false,'false',0,'0'].index parameter[:required]
           if parameter[:output_of]
-            next
+            if not @components[parameter[:output_of]]
+              errors << [componentname, parametername, "output_of refers to nonexistent component"]
+            else
+              next
+            end
           end
           errors << [componentname, parametername, "required parameter is missing"]
         end