Skip to content

Commit

Permalink
Do not change ServerConfig in exportConfigDumper
Browse files Browse the repository at this point in the history
  • Loading branch information
WordlessEcho committed Mar 30, 2023
1 parent 8f217cf commit 5be4e6d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions entityDumper/exportConfigDumper.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,11 @@ func SetOptionsByConfig(configPath string, options *DumperOptions) {
log.Panic().Err(err).Msg("failed to unmarshal config file")
}

if options.ServerConfig == "/etc/rhn/rhn.conf" && config.ServerConfig != "" {
options.ServerConfig = config.ServerConfig
}
// ServerConfig is set by cmd/root.go
// Should we change it anyway?
//if options.ServerConfig == "/etc/rhn/rhn.conf" && config.ServerConfig != "" {
// options.ServerConfig = config.ServerConfig
//}

if options.OutputFolder == "." && config.OutputDir != "" {
options.OutputFolder = config.OutputDir
Expand Down

0 comments on commit 5be4e6d

Please sign in to comment.