Переглянути джерело

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 роки тому
батько
коміт
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"`