mirror of
https://github.com/goharbor/harbor.git
synced 2025-02-01 20:41:22 +01:00
Merge pull request #12665 from chlins/fix/preheat-list-providers-under-project
fix(preheat): provider more info about p2p provider instance
This commit is contained in:
commit
f7bb6dd233
@ -1898,3 +1898,7 @@ definitions:
|
||||
type: integer
|
||||
provider:
|
||||
type: string
|
||||
enabled:
|
||||
type: boolean
|
||||
default:
|
||||
type: boolean
|
||||
|
@ -719,6 +719,8 @@ func (api *preheatAPI) ListProvidersUnderProject(ctx context.Context, params ope
|
||||
providers = append(providers, &models.ProviderUnderProject{
|
||||
ID: instance.ID,
|
||||
Provider: fmt.Sprintf("%s %s-%s", instance.Vendor, instance.Name, instance.Endpoint),
|
||||
Default: instance.Default,
|
||||
Enabled: instance.Enabled,
|
||||
})
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user