Skip to content

Commit 4eaab96

Browse files
committed
fix: remove embedded Duration field from selector
1 parent 3fb343d commit 4eaab96

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

internal/provider/cisco/nxos/provider.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2854,7 +2854,7 @@ func (p *Provider) EnsureAAA(ctx context.Context, req *provider.EnsureAAARequest
28542854
srv.Key = key
28552855
}
28562856
if server.Timeout != nil {
2857-
srv.Timeout = int32(server.Timeout.Duration.Seconds())
2857+
srv.Timeout = int32(server.Timeout.Seconds())
28582858
}
28592859
conf = append(conf, srv)
28602860
}
@@ -2883,7 +2883,7 @@ func (p *Provider) EnsureAAA(ctx context.Context, req *provider.EnsureAAARequest
28832883
srv.Key = key
28842884
}
28852885
if server.Timeout != nil {
2886-
srv.Timeout = int32(server.Timeout.Duration.Seconds())
2886+
srv.Timeout = int32(server.Timeout.Seconds())
28872887
}
28882888
conf = append(conf, srv)
28892889
}

0 commit comments

Comments
 (0)