From b28ea3e3097425f06b5492667a27f509fc417658 Mon Sep 17 00:00:00 2001
From: fseidl <fabian.seidl1@gmx.de>
Date: Mon, 21 Feb 2022 13:44:06 +0100
Subject: [PATCH] fix for error with changeresponse and wron initial
 southboundtype

---
 api/pnd.go       | 2 +-
 api/pnd_test.go  | 2 +-
 config/config.go | 4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/api/pnd.go b/api/pnd.go
index 2b8071376..ea6e78a8f 100644
--- a/api/pnd.go
+++ b/api/pnd.go
@@ -206,7 +206,7 @@ func (p *PrincipalNetworkDomainAdapter) Confirm(cuid uuid.UUID) error {
 	return nil
 }
 
-func filterChanges(state ppb.ChangeState, resp *ppb.GetChangeResponse) []uuid.UUID {
+func filterChanges(state ppb.ChangeState, resp *ppb.GetChangeListResponse) []uuid.UUID {
 	changes := make([]uuid.UUID, 0)
 	for _, ch := range resp.Change {
 		if ch.State == state {
diff --git a/api/pnd_test.go b/api/pnd_test.go
index 977142fd6..0a2e9d00c 100644
--- a/api/pnd_test.go
+++ b/api/pnd_test.go
@@ -647,7 +647,7 @@ func TestPrincipalNetworkDomainAdapter_Confirm(t *testing.T) {
 func Test_filterChanges(t *testing.T) {
 	type args struct {
 		state ppb.ChangeState
-		resp  *ppb.GetChangeResponse
+		resp  *ppb.GetChangeListResponse
 	}
 	tests := []struct {
 		name string
diff --git a/config/config.go b/config/config.go
index 86e39b687..f2cd04d3d 100644
--- a/config/config.go
+++ b/config/config.go
@@ -57,8 +57,8 @@ func InitializeConfig() error {
 	BaseSouthBoundUUID = baseSouthBoundUUIDFromViper
 
 	BaseSouthBoundType = viper.GetInt32(baseSouthBoundTypeKey)
-	if BaseSouthBoundType != 0 {
-		viper.Set(baseSouthBoundTypeKey, 0)
+	if BaseSouthBoundType != 1 {
+		viper.Set(baseSouthBoundTypeKey, 1)
 		viper.WriteConfig()
 	}
 
-- 
GitLab