herlanS_ преди 3 години
родител
ревизия
51ed253c4d
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/main/kotlin/co/id/datacomsolusindo/ipphonebridge/IpPhoneBridgeApplication.kt

+ 1 - 1
src/main/kotlin/co/id/datacomsolusindo/ipphonebridge/IpPhoneBridgeApplication.kt

@@ -63,7 +63,7 @@ fun main(args: Array<String>) {
 
     val command = "curl -X GET https://${System.getenv("KUBERNETES_SERVICE_HOST")}:${System.getenv("KUBERNETES_PORT_443_TCP_PORT")}/api/v1/namespaces/tm-bridge/pods/${System.getenv("HOSTNAME")}"
     val process: Process = Runtime.getRuntime().exec(command)
-    println(process.inputStream.readAllBytes())
+    println(String(process.inputStream.readAllBytes()))
 }
 
 class Client(