diff options
author | Øyvind Grønnesby <oyving@verizonmedia.com> | 2019-10-04 16:43:50 +0200 |
---|---|---|
committer | Øyvind Grønnesby <oyving@verizonmedia.com> | 2019-10-04 16:43:50 +0200 |
commit | 81390fb09c459e594a58f70ed7817278bfb7343e (patch) | |
tree | 2ee472ff0808ef21a6dd156c432d4be0a49b84bc /vespa-maven-plugin | |
parent | 8fb369df028d841dd07cbeea8b155b44db583701 (diff) |
Make test for key presence symmetric
Diffstat (limited to 'vespa-maven-plugin')
-rw-r--r-- | vespa-maven-plugin/src/main/java/ai/vespa/hosted/plugin/AbstractVespaMojo.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vespa-maven-plugin/src/main/java/ai/vespa/hosted/plugin/AbstractVespaMojo.java b/vespa-maven-plugin/src/main/java/ai/vespa/hosted/plugin/AbstractVespaMojo.java index 080ac0b8173..fac8b8b792a 100644 --- a/vespa-maven-plugin/src/main/java/ai/vespa/hosted/plugin/AbstractVespaMojo.java +++ b/vespa-maven-plugin/src/main/java/ai/vespa/hosted/plugin/AbstractVespaMojo.java @@ -70,7 +70,7 @@ public abstract class AbstractVespaMojo extends AbstractMojo { instance = firstNonBlank(instance, project.getProperties().getProperty("instance", "default")); id = ApplicationId.from(tenant, application, instance); - if (privateKey == null) { + if (privateKey == null || privateKey.isEmpty()) { if (privateKeyFile == null || privateKeyFile.isEmpty()) { throw new IllegalArgumentException("Missing 'privateKey' or 'privateKeyFile' properties."); } |