Skip to content

Commit 9891193

Browse files
committed
FIx
1 parent 165fd47 commit 9891193

File tree

1 file changed

+3
-5
lines changed
  • integration-tests/src/test/java/oracle/kubernetes/operator

1 file changed

+3
-5
lines changed

integration-tests/src/test/java/oracle/kubernetes/operator/SitConfig.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -202,11 +202,9 @@ private static void copySitConfigFiles(String files[], String secretName) throws
202202
}
203203

204204
private static void display(String dir) throws IOException {
205-
File contents = new File(dir);
206-
String[] list = contents.list();
207-
for (String file : list) {
208-
String content = new String(Files.readAllBytes(Paths.get(file)));
209-
logger.log(Level.INFO, content);
205+
for (File file : new File(dir).listFiles()) {
206+
logger.log(Level.INFO, file.getAbsolutePath());
207+
logger.log(Level.INFO, new String(Files.readAllBytes(file.toPath())));
210208
}
211209
}
212210

0 commit comments

Comments
 (0)