Skip to content

Commit

Permalink
More helpful error when no config bucket exists
Browse files Browse the repository at this point in the history
Our `renew-https-cert` pipeline is erroring when trying to find control-tower's config storage buckets. This commit names the buckets that were looked for in the error so that we would identify a naming problem.
  • Loading branch information
Miki Mokrysz authored Apr 14, 2021
1 parent e32d919 commit 20a1b45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ func determineBucketName(iaas iaas.Provider, namespace, project string) (string,
if err != nil {
foundNamespacedBucket, err = iaas.BucketExists(namespaceBucketName)
if err != nil {
return "", false, err
return "", false, fmt.Errorf("error looking for possible config buckets [%v] or [%v]: [%v]", regionBucketName, namespaceBucketName, err)
}
}

Expand Down

0 comments on commit 20a1b45

Please sign in to comment.