[skip ci] improve layout

This commit is contained in:
az 2023-02-16 18:25:18 +01:00
parent eb04e84007
commit 93425a0f83
2 changed files with 5 additions and 3 deletions

View file

@ -57,7 +57,6 @@ fun Prov.provisionK3s(
provisionK3sApplication(applicationFile) provisionK3sApplication(applicationFile)
} }
if (!k3sConfig.reprovision) { if (!k3sConfig.reprovision) {
provisionServerCliConvenience() provisionServerCliConvenience()
} }

View file

@ -21,7 +21,10 @@ class DefaultApplicationFileRepository(val applicationFileName: ApplicationFileN
val applicationFileContents = getLocalFileContent(applicationFileName.fullyQualifiedName()) val applicationFileContents = getLocalFileContent(applicationFileName.fullyQualifiedName())
val applicationFile = ApplicationFile(applicationFileName, applicationFileContents) val applicationFile = ApplicationFile(applicationFileName, applicationFileContents)
return if (applicationFile.isValid()) { applicationFile } return if (applicationFile.isValid()) {
else { throw RuntimeException("Application file was invalid.") } applicationFile
} else {
throw RuntimeException("Application file was invalid.")
}
} }
} }