Skip to content

Commit

Permalink
bug :: 로직수정
Browse files Browse the repository at this point in the history
  • Loading branch information
HyunSu1768 committed Feb 15, 2024
1 parent 7409fde commit bd202d0
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,15 @@ class DeployController(
domain: String?
) {

val domainMap = domain?.let { it ->
val decodedDomain = Base64.getDecoder().decode(it)
String(decodedDomain, Charset.defaultCharset()).lines().associate {
if(domain != null && domain.isNotEmpty()) {
val decodedDomain = Base64.getDecoder().decode(domain)
val domainMap = String(decodedDomain, Charset.defaultCharset()).lines().associate {
val (key, value) = it.split(":").map { it.trim() }
key to value
}
deployService.updateUrl(containerName, serviceType, prefix, domainMap)
} else {
deployService.updateUrl(containerName, serviceType, prefix, null)
}
deployService.updateUrl(containerName, serviceType, prefix, domainMap)
}
}

0 comments on commit bd202d0

Please sign in to comment.