From 2f11909352475c595d591a9b98ede11d7365bc56 Mon Sep 17 00:00:00 2001 From: gkarthiks Date: Wed, 29 Jul 2020 01:36:14 +0530 Subject: [PATCH] fix: for index out of range Signed-off-by: gkarthiks --- types/vault_pool_type.go | 1 + 1 file changed, 1 insertion(+) diff --git a/types/vault_pool_type.go b/types/vault_pool_type.go index 5758902..572c938 100644 --- a/types/vault_pool_type.go +++ b/types/vault_pool_type.go @@ -29,6 +29,7 @@ func (vp *VaultPool) RetireBackend(b *VaultBackend) { copy(vp.VaultBackends[i:], vp.VaultBackends[i+1:]) vp.VaultBackends[len(vp.VaultBackends)-1] = nil vp.VaultBackends = vp.VaultBackends[:len(vp.VaultBackends)-1] + break } } }