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) {
210
210
try {
211
211
Map <String , Object > component = YAML_MAPPER .loadAs (Files .newInputStream (path ), Map .class );
212
212
213
- String type = (String ) component .get ("type" );
214
213
Map <String , Object > metadata = (Map <String , Object >) component .get ("metadata" );
215
214
String name = (String ) metadata .get ("name" );
216
215
217
216
Map <String , Object > spec = (Map <String , Object >) component .get ("spec" );
217
+ String type = (String ) spec .get ("type" );
218
218
String version = (String ) spec .get ("version" );
219
219
List <Map <String , String >> specMetadata =
220
220
(List <Map <String , String >>) spec .getOrDefault ("metadata" , Collections .emptyMap ());
You can’t perform that action at this time.
0 commit comments