Просмотр исходного кода

Do not show provisioners if they are not required.

For deployment types like linked ca, the list of provisioners in
the ca.json are not required, so we should tag the json as omitempty.
Mariano Cano 5 лет назад
Родитель
Сommit
384be6e205
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      authority/config/config.go

+ 1 - 1
authority/config/config.go

@@ -85,7 +85,7 @@ type ASN1DN struct {
 type AuthConfig struct {
 	*cas.Options
 	AuthorityID          string                `json:"authorityId,omitempty"`
-	Provisioners         provisioner.List      `json:"provisioners"`
+	Provisioners         provisioner.List      `json:"provisioners,omitempty"`
 	Admins               []*linkedca.Admin     `json:"-"`
 	Template             *ASN1DN               `json:"template,omitempty"`
 	Claims               *provisioner.Claims   `json:"claims,omitempty"`