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.") + } } }