From ba79c4c67b53606a9576dd484711ca202bc23635 Mon Sep 17 00:00:00 2001 From: Yousong Zhou Date: Wed, 15 Apr 2020 17:57:18 +0800 Subject: [PATCH] image: use identity_apis.EndpointInterfacePublic --- pkg/image/torrent/torrent.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/image/torrent/torrent.go b/pkg/image/torrent/torrent.go index e8f25e7d7a..dec787d125 100644 --- a/pkg/image/torrent/torrent.go +++ b/pkg/image/torrent/torrent.go @@ -21,6 +21,7 @@ import ( "yunion.io/x/log" + identity_apis "yunion.io/x/onecloud/pkg/apis/identity" "yunion.io/x/onecloud/pkg/appsrv" "yunion.io/x/onecloud/pkg/image/options" "yunion.io/x/onecloud/pkg/mcclient/auth" @@ -80,7 +81,7 @@ func SeedTorrent(torrentpath string, imageId, format string) error { } func seedTorrent(torrentpath string, imageId, format string) error { - url, err := auth.GetServiceURL("image", options.Options.Region, "", "public") + url, err := auth.GetServiceURL("image", options.Options.Region, "", identity_apis.EndpointInterfacePublic) if err != nil { return err }