-
Notifications
You must be signed in to change notification settings - Fork 9.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
resource/aws_iam_server_certificate: Remove state hashing from certif…
…icate_body, certificate_chain, and private_key arguments (#14187) Reference: #13406 Output from acceptance testing: ``` --- PASS: TestAccAWSIAMServerCertificate_name_prefix (6.05s) --- PASS: TestAccAWSIAMServerCertificate_disappears (6.10s) --- PASS: TestAccAWSIAMServerCertificate_Path (6.48s) --- PASS: TestAccAWSIAMServerCertificate_basic (6.54s) --- PASS: TestAccAWSIAMServerCertificate_file (10.07s) ```
- Loading branch information
Showing
3 changed files
with
58 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package aws | ||
|
||
import "strings" | ||
|
||
// StateTrimSpace is a StateFunc that trims extraneous whitespace from strings. | ||
// | ||
// This prevents differences caused by an API canonicalizing a string with a | ||
// trailing newline character removed. | ||
func StateTrimSpace(v interface{}) string { | ||
s, ok := v.(string) | ||
|
||
if !ok { | ||
return "" | ||
} | ||
|
||
return strings.TrimSpace(s) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters