Hardy-Barth Salia: enable new api at 2.3.64 (#24636)
This commit is contained in:
parent
a21fc0800c
commit
ef4633821b
1 changed files with 2 additions and 2 deletions
|
|
@ -45,7 +45,7 @@ type Salia struct {
|
|||
log *util.Logger
|
||||
uri string
|
||||
current int64
|
||||
fw int // 2 if fw 2.0 3 if fw >= 2.3.0
|
||||
fw int // 2 if fw 2.0 3 if fw >= 2.3.64 (oldest firmware we seen with the new behavior)
|
||||
apiG util.Cacheable[salia.Api]
|
||||
}
|
||||
|
||||
|
|
@ -116,7 +116,7 @@ func NewSalia(ctx context.Context, uri, user, password string, cache time.Durati
|
|||
wb.fw = 2
|
||||
}
|
||||
|
||||
if v.GreaterThanOrEqual(version.Must(version.NewSemver("2.3.0"))) {
|
||||
if v.GreaterThanOrEqual(version.Must(version.NewSemver("2.3.64"))) {
|
||||
wb.fw = 3
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue