From 1bc9a07316590a656f96f7403fd4f8418e726107 Mon Sep 17 00:00:00 2001 From: Chris Marchesi Date: Wed, 3 Nov 2021 13:16:45 -0700 Subject: [PATCH] populate correct field for host catalog secret (#1661) --- internal/host/plugin/host_catalog.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/host/plugin/host_catalog.go b/internal/host/plugin/host_catalog.go index 05320c550..8a29da5f8 100644 --- a/internal/host/plugin/host_catalog.go +++ b/internal/host/plugin/host_catalog.go @@ -133,7 +133,7 @@ func (agg *catalogAgg) toCatalogAndPersisted() (*HostCatalog, *HostCatalogSecret if len(agg.Secret) > 0 { s = allocHostCatalogSecret() s.CatalogId = agg.PublicId - s.Secret = agg.Secret + s.CtSecret = agg.Secret s.KeyId = agg.KeyId s.CreateTime = agg.PersistedCreateTime s.UpdateTime = agg.PersistedUpdateTime