Skip to content

Commit f8e6673

Browse files
committed
fix: remove embedded Duration field from selector
1 parent 07b48ab commit f8e6673

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
@@ -2959,7 +2959,7 @@ func (p *Provider) EnsureAAA(ctx context.Context, req *provider.EnsureAAARequest
29592959
srv.Key = key
29602960
}
29612961
if server.Timeout != nil {
2962-
srv.Timeout = int32(server.Timeout.Duration.Seconds())
2962+
srv.Timeout = int32(server.Timeout.Seconds())
29632963
}
29642964
conf = append(conf, srv)
29652965
}
@@ -2988,7 +2988,7 @@ func (p *Provider) EnsureAAA(ctx context.Context, req *provider.EnsureAAARequest
29882988
srv.Key = key
29892989
}
29902990
if server.Timeout != nil {
2991-
srv.Timeout = int32(server.Timeout.Duration.Seconds())
2991+
srv.Timeout = int32(server.Timeout.Seconds())
29922992
}
29932993
conf = append(conf, srv)
29942994
}

0 commit comments

Comments
 (0)