mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-19 02:37:24 +08:00
fix reauth condition on influxdb not found (#7456)
This commit is contained in:
@@ -22,7 +22,6 @@ import (
|
||||
"yunion.io/x/pkg/errors"
|
||||
|
||||
"yunion.io/x/onecloud/pkg/compute/options"
|
||||
"yunion.io/x/onecloud/pkg/httperrors"
|
||||
"yunion.io/x/onecloud/pkg/mcclient/auth"
|
||||
"yunion.io/x/onecloud/pkg/util/influxdb"
|
||||
)
|
||||
@@ -30,7 +29,7 @@ import (
|
||||
func setInfluxdbRetentionPolicy() error {
|
||||
setF := func() error {
|
||||
urls, err := auth.GetServiceURLs("influxdb", options.Options.Region, "", "")
|
||||
if err != nil && errors.Cause(err) == httperrors.ErrNotFound {
|
||||
if err != nil {
|
||||
auth.ReAuth()
|
||||
}
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user