Skip to content
Snippets Groups Projects
Commit b28ea3e3 authored by fseidl's avatar fseidl Committed by Fabian Seidl
Browse files

fix for error with changeresponse and wron initial southboundtype

parent 82d5eb42
No related branches found
No related tags found
1 merge request!238Stfaseid http refactor
......@@ -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 {
......
......@@ -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
......
......@@ -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()
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment