Skip to content

Commit 6366385

Browse files
committed
fixing resource discovery for kms key version
1 parent 9885495 commit 6366385

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

oci/export_helpers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ func getKmsKeyVersionId(resource *OCIResource) (string, error) {
291291
if !ok {
292292
return "", fmt.Errorf("[ERROR] unable to find management_endpoint for Kms KeyVersion")
293293
}
294-
keyId := resource.parent.id
294+
keyId := resource.parent.sourceAttributes["id"].(string)
295295
keyVersionId, ok := resource.sourceAttributes["key_version_id"].(string)
296296
if !ok {
297297
return "", fmt.Errorf("[ERROR] unable to find keyVersionId for Kms KeyVersion")

0 commit comments

Comments
 (0)