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

Fix name of the variable in comment.

Mariano Cano 4 лет назад
Родитель
Сommit
abe951d416
2 измененных файлов с 9 добавлено и 9 удалено
  1. 3 3
      authority/provisioner/nebula.go
  2. 6 6
      authority/provisioner/x5c.go

+ 3 - 3
authority/provisioner/nebula.go

@@ -139,9 +139,9 @@ func (p *Nebula) AuthorizeSign(ctx context.Context, token string) ([]SignOption,
 		data.SetToken(v)
 	}
 
-	// The Nebula certificate will be available using the template variable Crt.
-	// For example {{ .AuthorizationCrt.Details.Groups }} can be used to get all
-	// the groups.
+	// The Nebula certificate will be available using the template variable
+	// AuthorizationCrt. For example {{ .AuthorizationCrt.Details.Groups }} can
+	// be used to get all the groups.
 	data.SetAuthorizationCertificate(crt)
 
 	templateOptions, err := TemplateOptions(p.Options, data)

+ 6 - 6
authority/provisioner/x5c.go

@@ -213,9 +213,9 @@ func (p *X5C) AuthorizeSign(ctx context.Context, token string) ([]SignOption, er
 		data.SetToken(v)
 	}
 
-	// The X509 certificate will be available using the template variable Crt.
-	// For example {{ .AuthorizationCrt.DNSNames }} can be used to get all the
-	// domains.
+	// The X509 certificate will be available using the template variable
+	// AuthorizationCrt. For example {{ .AuthorizationCrt.DNSNames }} can be
+	// used to get all the domains.
 	data.SetAuthorizationCertificate(claims.chains[0][0])
 
 	templateOptions, err := TemplateOptions(p.Options, data)
@@ -292,9 +292,9 @@ func (p *X5C) AuthorizeSSHSign(ctx context.Context, token string) ([]SignOption,
 		data.SetToken(v)
 	}
 
-	// The X509 certificate will be available using the template variable Crt.
-	// For example {{ .AuthorizationCrt.DNSNames }} can be used to get all the
-	// domains.
+	// The X509 certificate will be available using the template variable
+	// AuthorizationCrt. For example {{ .AuthorizationCrt.DNSNames }} can be
+	// used to get all the domains.
 	data.SetAuthorizationCertificate(claims.chains[0][0])
 
 	templateOptions, err := TemplateSSHOptions(p.Options, data)