From 93425a0f837bc0691f99853e95182fa58dfa50f2 Mon Sep 17 00:00:00 2001 From: az Date: Thu, 16 Feb 2023 18:25:18 +0100 Subject: [PATCH] [skip ci] improve layout --- .../provs/server/domain/k3s/K3sService.kt | 1 - .../infrastructure/DefaultApplicationFileRepository.kt | 7 +++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main/kotlin/org/domaindrivenarchitecture/provs/server/domain/k3s/K3sService.kt b/src/main/kotlin/org/domaindrivenarchitecture/provs/server/domain/k3s/K3sService.kt index 955adae..6f8af87 100644 --- a/src/main/kotlin/org/domaindrivenarchitecture/provs/server/domain/k3s/K3sService.kt +++ b/src/main/kotlin/org/domaindrivenarchitecture/provs/server/domain/k3s/K3sService.kt @@ -57,7 +57,6 @@ fun Prov.provisionK3s( provisionK3sApplication(applicationFile) } - if (!k3sConfig.reprovision) { provisionServerCliConvenience() } diff --git a/src/main/kotlin/org/domaindrivenarchitecture/provs/server/infrastructure/DefaultApplicationFileRepository.kt b/src/main/kotlin/org/domaindrivenarchitecture/provs/server/infrastructure/DefaultApplicationFileRepository.kt index 8cc006e..528c38f 100644 --- a/src/main/kotlin/org/domaindrivenarchitecture/provs/server/infrastructure/DefaultApplicationFileRepository.kt +++ b/src/main/kotlin/org/domaindrivenarchitecture/provs/server/infrastructure/DefaultApplicationFileRepository.kt @@ -21,7 +21,10 @@ class DefaultApplicationFileRepository(val applicationFileName: ApplicationFileN val applicationFileContents = getLocalFileContent(applicationFileName.fullyQualifiedName()) val applicationFile = ApplicationFile(applicationFileName, applicationFileContents) - return if (applicationFile.isValid()) { applicationFile } - else { throw RuntimeException("Application file was invalid.") } + return if (applicationFile.isValid()) { + applicationFile + } else { + throw RuntimeException("Application file was invalid.") + } } }