Skip to content

Commit

Permalink
Removes postgrest set default config override
Browse files Browse the repository at this point in the history
  • Loading branch information
bomoko committed Aug 13, 2023
1 parent f879047 commit cb5354f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion cmd/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ func syncCommandRun(cmd *cobra.Command, args []string) {
}

configRoot, err := synchers.UnmarshallLagoonYamlToLagoonSyncStructure(lagoonConfigBytestream)

if err != nil {
log.Fatalf("There was an issue unmarshalling the sync configuration from %v: %v", viper.ConfigFileUsed(), err)
}
Expand Down Expand Up @@ -155,7 +156,7 @@ func syncCommandRun(cmd *cobra.Command, args []string) {
utils.LogFatalError(err.Error(), nil)
}
}

utils.LogDebugInfo("Config that is used for SSH", sshOptions)

err = runSyncProcess(synchers.RunSyncProcessFunctionTypeArguments{
Expand Down
1 change: 0 additions & 1 deletion synchers/postgres.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ func (m PostgresSyncPlugin) GetPluginId() string {
func (m PostgresSyncPlugin) UnmarshallYaml(syncerConfigRoot SyncherConfigRoot) (Syncer, error) {
postgres := PostgresSyncRoot{}
postgres.Config.setDefaults()
postgres.LocalOverrides.Config.setDefaults()

// Use 'lagoon-sync' yaml as default
configMap := syncerConfigRoot.LagoonSync[m.GetPluginId()]
Expand Down

0 comments on commit cb5354f

Please sign in to comment.