Skip to content

Commit

Permalink
update set originalCfg
Browse files Browse the repository at this point in the history
  • Loading branch information
flarco committed Mar 4, 2024
1 parent dfc49db commit bb7ea14
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/sling/replication.go
Expand Up @@ -401,6 +401,9 @@ func UnmarshalReplication(replicYAML string) (config ReplicationConfig, err erro
}
}

// set originalCfg
config.originalCfg = g.Marshal(config)

return
}

Expand Down Expand Up @@ -436,7 +439,6 @@ func LoadReplicationConfig(cfgPath string) (config ReplicationConfig, err error)
return
}

config.originalCfg = g.Marshal(config)
config.Env["SLING_CONFIG_PATH"] = cfgPath

return
Expand Down

0 comments on commit bb7ea14

Please sign in to comment.