From ef8cfff7c5e259ce95e422f23035fe74a85f2164 Mon Sep 17 00:00:00 2001 From: Justin Field Date: Mon, 12 Dec 2016 15:00:49 -0800 Subject: [PATCH] Make generate Vault config command re-runnable, so that it can replace current config --- gradle.properties | 2 +- .../operation/vault/CreateVaultConfigOperation.java | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/gradle.properties b/gradle.properties index 4f803ea8..c39ea40b 100644 --- a/gradle.properties +++ b/gradle.properties @@ -16,4 +16,4 @@ group=com.nike artifactId=cerberus-lifecycle-cli -version=0.10.0 +version=0.11.0 diff --git a/src/main/java/com/nike/cerberus/operation/vault/CreateVaultConfigOperation.java b/src/main/java/com/nike/cerberus/operation/vault/CreateVaultConfigOperation.java index 8bfba695..cdd92f2f 100644 --- a/src/main/java/com/nike/cerberus/operation/vault/CreateVaultConfigOperation.java +++ b/src/main/java/com/nike/cerberus/operation/vault/CreateVaultConfigOperation.java @@ -65,18 +65,12 @@ public void run(final CreateVaultConfigCommand command) { public boolean isRunnable(final CreateVaultConfigCommand command) { boolean isRunnable = true; final String vaultAclToken = configStore.getVaultAclToken(); - final boolean hasVaultConfig = configStore.hasVaultConfig(); if (StringUtils.isBlank(vaultAclToken)) { logger.error("No Vault ACL token present for Consul, please generate that first."); isRunnable = false; } - if (hasVaultConfig) { - logger.error("Vault configuration present for specified environment, use the update command."); - isRunnable = false; - } - return isRunnable; } }