Skip to content

Commit dd9d674

Browse files
committed
review fixes
1 parent cee1347 commit dd9d674

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎examples/kms/src/main/java/cloud/stackit/sdk/kms/examples/KmsExample.java‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ private static void runExample(KmsApi kmsApi, UUID projectId)
7272
.displayName("java-sdk-example-keyring")
7373
.description("A Java SDK example key ring"));
7474
keyRingID = Objects.requireNonNull(keyRing.getId());
75-
waitForKeyring(kmsApi, projectId, keyRingID);
75+
waitForKeyRing(kmsApi, projectId, keyRingID);
7676
System.out.println("key ring created: " + keyRingID);
7777
System.out.println("creating key");
7878
Key key =
@@ -95,7 +95,7 @@ private static void runExample(KmsApi kmsApi, UUID projectId)
9595
// schedule key for deletion
9696
System.out.println("scheduling key deletion");
9797
kmsApi.deleteKey(projectId, REGION, keyRingID, keyID);
98-
System.out.println("key scheduled for deletion, delete keyring manually");
98+
System.out.println("Key scheduled for deletion. ⚠️ The key ring can't be deleted until the key deletion is done. This may take some days. Delete the key ring manually after this period.");
9999
}
100100
// key ring can only be deleted if no key exists.
101101
if (keyRingID != null && keyID == null) {
@@ -106,7 +106,7 @@ private static void runExample(KmsApi kmsApi, UUID projectId)
106106
}
107107
}
108108

109-
private static void waitForKeyring(KmsApi kmsApi, UUID projectId, UUID keyRingId)
109+
private static void waitForKeyRing(KmsApi kmsApi, UUID projectId, UUID keyRingId)
110110
throws ApiException, InterruptedException {
111111
waitUntil(
112112
"key ring " + keyRingId + " to become active",

0 commit comments

Comments
 (0)