From 0f9376a71407145e3c1352dce7a4f7d2efb9eaa0 Mon Sep 17 00:00:00 2001 From: Paul Latzelsperger Date: Tue, 17 Sep 2024 14:53:54 +0200 Subject: [PATCH] fix: compile error --- .../edc/identityhub/seed/ParticipantContextSeedExtension.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/superuser-seed/src/main/java/org/eclipse/edc/identityhub/seed/ParticipantContextSeedExtension.java b/extensions/superuser-seed/src/main/java/org/eclipse/edc/identityhub/seed/ParticipantContextSeedExtension.java index 448e0319..5a9910ea 100644 --- a/extensions/superuser-seed/src/main/java/org/eclipse/edc/identityhub/seed/ParticipantContextSeedExtension.java +++ b/extensions/superuser-seed/src/main/java/org/eclipse/edc/identityhub/seed/ParticipantContextSeedExtension.java @@ -91,7 +91,7 @@ public void start() { .onFailure(f -> monitor.warning("Error overriding API key for '%s': %s".formatted(superUserParticipantId, f.getFailureDetail()))); return key; }) - .orElse(generatedKey); + .orElse(generatedKey.get("apiKey").toString()); monitor.info("Created user 'super-user'. Please take note of the API Key: %s".formatted(apiKey)); }) .orElseThrow(f -> new EdcException("Error creating Super-User: " + f.getFailureDetail()));