mirror of
https://github.com/gravitational/teleport.git
synced 2026-10-31 03:27:49 +08:00
Spell fixes for error messages (#55587)
* Spell fixes for error messages * spell fix
This commit is contained in:
@@ -235,7 +235,7 @@ func (c *ClientState) GenerateKeypair(ctx context.Context, getSuite cryptosuites
|
||||
|
||||
privateKeyBytes, err := keys.MarshalPrivateKey(key)
|
||||
if err != nil {
|
||||
return nil, trace.Wrap(err, "marshallng private key")
|
||||
return nil, trace.Wrap(err, "marshaling private key")
|
||||
}
|
||||
|
||||
// prepend the new key to the top of the list for faster lookup
|
||||
@@ -285,7 +285,7 @@ func (c *ClientState) SetActiveKey(signer crypto.Signer) error {
|
||||
|
||||
privateKeyBytes, err := keys.MarshalPrivateKey(key.Signer)
|
||||
if err != nil {
|
||||
return trace.Wrap(err, "marshallng private key")
|
||||
return trace.Wrap(err, "marshaling private key")
|
||||
}
|
||||
|
||||
sshPubKey, err := ssh.NewPublicKey(key.Public())
|
||||
@@ -452,7 +452,7 @@ func NewUnboundClientState(ctx context.Context, fs FS, getSuite cryptosuites.Get
|
||||
|
||||
privateKeyBytes, err := keys.MarshalPrivateKey(key)
|
||||
if err != nil {
|
||||
return nil, trace.Wrap(err, "marshallng private key")
|
||||
return nil, trace.Wrap(err, "marshaling private key")
|
||||
}
|
||||
|
||||
sshPubKey, err := ssh.NewPublicKey(key.Public())
|
||||
|
||||
@@ -88,7 +88,7 @@ type TemplateData struct {
|
||||
Regions map[string]string
|
||||
}
|
||||
|
||||
// AWSPartitions contains the struct representation of the AWS SDK patitions
|
||||
// AWSPartitions contains the struct representation of the AWS SDK partitions
|
||||
// JSON file.
|
||||
type AWSPartitions struct {
|
||||
Partitions []struct {
|
||||
@@ -101,7 +101,7 @@ type AWSPartitions struct {
|
||||
func main() {
|
||||
partitionsContents, err := loadSDKPartitionsFile()
|
||||
if err != nil {
|
||||
log.Fatalf("failed to parse patitions: %s", trace.DebugReport(err))
|
||||
log.Fatalf("failed to parse partitions: %s", trace.DebugReport(err))
|
||||
}
|
||||
|
||||
data, err := convertToTemplateData(partitionsContents)
|
||||
@@ -173,7 +173,7 @@ const (
|
||||
outputFilename = "regions.go"
|
||||
// awsPackageName is the AWS package used to find the paritions references.
|
||||
awsPackageName = "github.com/aws/aws-sdk-go-v2"
|
||||
// awsPartitionsFilePath is the patitions JSON file path inside the package.
|
||||
// awsPartitionsFilePath is the partitions JSON file path inside the package.
|
||||
awsPartitionsFilePath = "internal/endpoints/awsrulesfn/partitions.json"
|
||||
// globalRegionSuffix is a strings suffix that indicates a region is a
|
||||
// global region.
|
||||
|
||||
Reference in New Issue
Block a user