Allow empty string for kms crypto key rotation period (#3468)

Signed-off-by: Modular Magician <magic-modules@google.com>
This commit is contained in:
The Magician 2019-04-22 10:40:11 -07:00 committed by emily
parent 6711efe903
commit 55bbc252a9

View File

@ -38,7 +38,7 @@ func resourceKmsCryptoKey() *schema.Resource {
"rotation_period": {
Type: schema.TypeString,
Optional: true,
ValidateFunc: validateKmsCryptoKeyRotationPeriod,
ValidateFunc: orEmpty(validateKmsCryptoKeyRotationPeriod),
},
"version_template": {
Type: schema.TypeList,