Skip to content

Commit 03cb622

Browse files
fix(kms): align sample to other languages (GoogleCloudPlatform#12161)
* fix(kms): align sample to other languages * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 8db931d commit 03cb622

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

kms/snippets/create_key_for_import.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ def create_key_for_import(
5656
"parent": key_ring_name,
5757
"crypto_key_id": crypto_key_id,
5858
"crypto_key": key,
59+
# Do not allow KMS to generate an initial version of this key.
60+
"skip_initial_version_creation": True,
5961
}
6062
)
6163
print(f"Created hsm key: {created_key.name}")

0 commit comments

Comments
 (0)