populate correct field for host catalog secret (#1661)

This commit is contained in:
Chris Marchesi authored and GitHub committed 2021-11-03 13:16:45 -07:00
1 parent b9269ce93c
commit 1bc9a07316
1 file changed
+1 -1
+1 -1
View File
@@ -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