1
0
mirror of https://github.com/Luzifer/vault2env.git synced 2024-09-19 00:53:02 +00:00

Fix: Don't panic if a key is not existent

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2017-09-25 21:51:29 +02:00
parent 2223b78d64
commit 2d64463bfb
Signed by: luzifer
GPG Key ID: DC2729FDD34BE99E

View File

@ -118,6 +118,11 @@ func main() {
continue
}
if data == nil {
log.Errorf("Vault key %q does not exist", vaultKey)
continue
}
if data.Data == nil {
log.Errorf("Vault key %q did not contain data", vaultKey)
continue