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
This commit is part of merge request !238. Comments created here will be created in the context of that merge request.
...@@ -206,7 +206,7 @@ func (p *PrincipalNetworkDomainAdapter) Confirm(cuid uuid.UUID) error { ...@@ -206,7 +206,7 @@ func (p *PrincipalNetworkDomainAdapter) Confirm(cuid uuid.UUID) error {
return nil 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) changes := make([]uuid.UUID, 0)
for _, ch := range resp.Change { for _, ch := range resp.Change {
if ch.State == state { if ch.State == state {
......
...@@ -647,7 +647,7 @@ func TestPrincipalNetworkDomainAdapter_Confirm(t *testing.T) { ...@@ -647,7 +647,7 @@ func TestPrincipalNetworkDomainAdapter_Confirm(t *testing.T) {
func Test_filterChanges(t *testing.T) { func Test_filterChanges(t *testing.T) {
type args struct { type args struct {
state ppb.ChangeState state ppb.ChangeState
resp *ppb.GetChangeResponse resp *ppb.GetChangeListResponse
} }
tests := []struct { tests := []struct {
name string name string
......
...@@ -57,8 +57,8 @@ func InitializeConfig() error { ...@@ -57,8 +57,8 @@ func InitializeConfig() error {
BaseSouthBoundUUID = baseSouthBoundUUIDFromViper BaseSouthBoundUUID = baseSouthBoundUUIDFromViper
BaseSouthBoundType = viper.GetInt32(baseSouthBoundTypeKey) BaseSouthBoundType = viper.GetInt32(baseSouthBoundTypeKey)
if BaseSouthBoundType != 0 { if BaseSouthBoundType != 1 {
viper.Set(baseSouthBoundTypeKey, 0) viper.Set(baseSouthBoundTypeKey, 1)
viper.WriteConfig() viper.WriteConfig()
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment