Skip to content

Commit

Permalink
Check namespace before executing pipeline. Closes #1080 (#1081)
Browse files Browse the repository at this point in the history
  • Loading branch information
brollb committed Mar 22, 2018
1 parent 32c3d84 commit 0be3ec4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/plugins/ExecutePipeline/ExecutePipeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ define([
runId;

this.initRun();
if (!this.META.Pipeline) {
return callback(new Error('Incorrect namespace. Expected to be executed in the "pipeline" namespace'));
}
if (this.core.isTypeOf(this.activeNode, this.META.Pipeline)) {
// If starting with a pipeline, we will create an Execution first
startPromise = startPromise
Expand Down

0 comments on commit 0be3ec4

Please sign in to comment.