Skip to content

Commit

Permalink
update sling_run
Browse files Browse the repository at this point in the history
  • Loading branch information
flarco committed Oct 1, 2024
1 parent c728384 commit e7b954d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/sling/sling_run.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,12 +179,12 @@ func processRun(c *g.CliSC) (ok bool, err error) {
return ok, nil
}

if replicationCfgPath != "" && taskCfgStr != "" {
return ok, g.Error("cannot provide replication and task configuration. Choose one.")
if val := os.Getenv("SLING_TASK_CONFIG"); val != "" {
taskCfgStr = val
}

if val := os.Getenv("SLING_CONFIG_OVERWRITE"); val != "" {
taskCfgStr = val
if replicationCfgPath == "" && taskCfgStr == "" {
return ok, g.Error("cannot get replication configuration.")
}

if taskCfgStr != "" {
Expand Down

0 comments on commit e7b954d

Please sign in to comment.