From b3afde6c93368a6287ef3494e7c2bd5eec9ea994 Mon Sep 17 00:00:00 2001 From: az Date: Mon, 19 Apr 2021 21:02:21 +0200 Subject: [PATCH] v0.8.9-SNAPSHOT fix double result in getSecret --- build.gradle | 6 +++++- src/main/kotlin/io/provs/Prov.kt | 1 - 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index 85b502b..8116d2b 100644 --- a/build.gradle +++ b/build.gradle @@ -14,7 +14,7 @@ apply plugin: 'java-test-fixtures' apply plugin: 'maven-publish' group = 'io.provs' -version = '0.8.8' +version = '0.8.9-SNAPSHOT' repositories { mavenCentral() @@ -40,12 +40,16 @@ test { compileJava.options.debugOptions.debugLevel = "source,lines,vars" compileTestJava.options.debugOptions.debugLevel = "source,lines,vars" +sourceCompatibility = 1.11 +targetCompatibility = 1.11 + // https://stackoverflow.com/questions/21904269/configure-gradle-to-publish-sources-and-javadoc java { withSourcesJar() withJavadocJar() } + dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version" diff --git a/src/main/kotlin/io/provs/Prov.kt b/src/main/kotlin/io/provs/Prov.kt index 1cf7fe5..40860f3 100644 --- a/src/main/kotlin/io/provs/Prov.kt +++ b/src/main/kotlin/io/provs/Prov.kt @@ -161,7 +161,6 @@ open class Prov protected constructor(private val processor: Processor, val name */ fun getSecret(command: String): Secret? { val result = cmdNoLog(command) - addResultToEval(ProvResult(result.success, err = result.err, exception = result.exception, exit = result.exit)) return if (result.success && result.out != null) { addResultToEval(ProvResult(true, getCallingMethodName())) Secret(result.out)