File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
testcontainers-dapr/src/main/java/io/dapr/testcontainers Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -210,11 +210,11 @@ public DaprContainer withComponent(Path path) {
210210 try {
211211 Map <String , Object > component = YAML_MAPPER .loadAs (Files .newInputStream (path ), Map .class );
212212
213- String type = (String ) component .get ("type" );
214213 Map <String , Object > metadata = (Map <String , Object >) component .get ("metadata" );
215214 String name = (String ) metadata .get ("name" );
216215
217216 Map <String , Object > spec = (Map <String , Object >) component .get ("spec" );
217+ String type = (String ) spec .get ("type" );
218218 String version = (String ) spec .get ("version" );
219219 List <Map <String , String >> specMetadata =
220220 (List <Map <String , String >>) spec .getOrDefault ("metadata" , Collections .emptyMap ());
You can’t perform that action at this time.
0 commit comments