Skip to content

Commit

Permalink
Ansible KMS Modules
Browse files Browse the repository at this point in the history
Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
rambleraptor authored and modular-magician committed Aug 20, 2019
1 parent e02e0c2 commit 2fd1d50
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions google/kms_crypto_key.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@ func GetKmsCryptoKeyApiObject(d TerraformResourceData, config *Config) (map[stri
} else if v, ok := d.GetOkExists("version_template"); !isEmptyValue(reflect.ValueOf(versionTemplateProp)) && (ok || !reflect.DeepEqual(v, versionTemplateProp)) {
obj["versionTemplate"] = versionTemplateProp
}
keyRingProp, err := expandKmsCryptoKeyKeyRing(d.Get("key_ring"), d, config)
if err != nil {
return nil, err
} else if v, ok := d.GetOkExists("key_ring"); !isEmptyValue(reflect.ValueOf(keyRingProp)) && (ok || !reflect.DeepEqual(v, keyRingProp)) {
obj["keyRing"] = keyRingProp
}

return resourceKmsCryptoKeyEncoder(d, config, obj)
}
Expand Down Expand Up @@ -139,3 +145,7 @@ func expandKmsCryptoKeyVersionTemplateAlgorithm(v interface{}, d TerraformResour
func expandKmsCryptoKeyVersionTemplateProtectionLevel(v interface{}, d TerraformResourceData, config *Config) (interface{}, error) {
return v, nil
}

func expandKmsCryptoKeyKeyRing(v interface{}, d TerraformResourceData, config *Config) (interface{}, error) {
return v, nil
}

0 comments on commit 2fd1d50

Please sign in to comment.