1
0
mirror of https://github.com/getsops/sops.git synced 2026-02-05 12:45:21 +01:00

Fix typos

This commit is contained in:
Calin Don
2017-09-18 18:48:34 +03:00
parent f3dacbbd80
commit 8e15b25cad
2 changed files with 3 additions and 3 deletions

View File

@@ -131,7 +131,7 @@ func main() {
},
cli.StringSliceFlag{
Name: "gcp-kms",
Usage: "the GCP KMS Resourece ID the new group should contain. Can be specified more than once",
Usage: "the GCP KMS Resource ID the new group should contain. Can be specified more than once",
},
cli.BoolFlag{
Name: "in-place, i",

View File

@@ -92,7 +92,7 @@ func NewMasterKeyFromResourceID(resourceID string) *MasterKey {
return k
}
// MasterKeysFromResourceIDString takes a comma separated list of GCP KMS resourece IDs and returns a slice of new MasterKeys for them
// MasterKeysFromResourceIDString takes a comma separated list of GCP KMS resource IDs and returns a slice of new MasterKeys for them
func MasterKeysFromResourceIDString(resourceID string) []*MasterKey {
var keys []*MasterKey
if resourceID == "" {
@@ -108,7 +108,7 @@ func (key MasterKey) createCloudKMSService() (*cloudkms.Service, error) {
re := regexp.MustCompile(`^projects/[^/]+/locations/[^/]+/keyRings/[^/]+/cryptoKeys/[^/]+$`)
matches := re.FindStringSubmatch(key.ResourceID)
if matches == nil {
return nil, fmt.Errorf("No valid resoureceId found in %q", key.ResourceID)
return nil, fmt.Errorf("No valid resourceId found in %q", key.ResourceID)
}
ctx := context.Background()