diff --git a/api/pnd.go b/api/pnd.go index 2b80713765109903b02f4cbbbe1a93403af02277..ea6e78a8f02e2c1643143940fcc18628d9609630 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 977142fd64066064df0b60318b5de998c7600481..0a2e9d00ccdde690244e0ddcec8395f1feaff6c1 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 86e39b6872bd7cda753714360277a955b348d7f9..f2cd04d3d99b33d1f66b38cb0cca1a831b3f0a71 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() }