[skip ci] improve layout
This commit is contained in:
parent
eb04e84007
commit
93425a0f83
2 changed files with 5 additions and 3 deletions
|
@ -57,7 +57,6 @@ fun Prov.provisionK3s(
|
||||||
provisionK3sApplication(applicationFile)
|
provisionK3sApplication(applicationFile)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (!k3sConfig.reprovision) {
|
if (!k3sConfig.reprovision) {
|
||||||
provisionServerCliConvenience()
|
provisionServerCliConvenience()
|
||||||
}
|
}
|
||||||
|
|
|
@ -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.")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue