1
0
Fork 0
mirror of https://github.com/Luzifer/vault2env.git synced 2024-12-20 12:11:19 +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