Skip to content

Commit e6f9767

Browse files
committed
fixed config attach for Yaml/Jason pipelines - when there is no variables section, config is not attached to pipeline
1 parent 22898db commit e6f9767

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/scala/com/qwshen/etl/pipeline/builder/JsonPipelineBuilder.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ class JsonPipelineBuilder extends PipelineBuilder with Loggable {
131131
def withKV = (k: String, v: String) => {
132132
val data = this.evaluate(this.resolve(ConfigurationManager.quote(v))(newConfig))(session)
133133
vars.put(k, data)
134+
//update the config
134135
newConfig = ConfigurationManager.mergeVariables(newConfig, Map(k -> data))
135136
}
136137
value.foreach(v => withKV(n, v))

0 commit comments

Comments
 (0)