diff --git a/cmd/sync.go b/cmd/sync.go index 124ee0d..4d7b8fd 100644 --- a/cmd/sync.go +++ b/cmd/sync.go @@ -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) } @@ -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{ diff --git a/synchers/postgres.go b/synchers/postgres.go index 7659823..21c17e4 100644 --- a/synchers/postgres.go +++ b/synchers/postgres.go @@ -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()]