feat(cloudwatch): make it possible to reset keys

closes #6697
This commit is contained in:
bergquist
2016-11-24 16:24:47 +01:00
parent 3d21f06d5b
commit 7bc1c3cc1c
6 changed files with 61 additions and 56 deletions

View File

@ -215,5 +215,11 @@ func convertModelToDtos(ds *m.DataSource) dtos.DataSource {
dto.TLSAuth.ClientKeySet = len(ds.SecureJsonData["tlsClientKey"]) > 0
}
for k, v := range ds.SecureJsonData {
if len(v) > 0 {
dto.EncryptedFields = append(dto.EncryptedFields, k)
}
}
return dto
}