From eb38f915f6cdb0a4a1d95bcd5f19710a7bb2c7f3 Mon Sep 17 00:00:00 2001 From: Gibheer Date: Sat, 3 Jun 2017 22:04:50 +0200 Subject: [PATCH] add todo item This was found out when playing around with CSRs and deleting a dependency. No error was raised, which was weird. --- cmd/pkiadmd/storage.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/pkiadmd/storage.go b/cmd/pkiadmd/storage.go index 5124de4..6d84219 100644 --- a/cmd/pkiadmd/storage.go +++ b/cmd/pkiadmd/storage.go @@ -296,6 +296,7 @@ func (s *Storage) Remove(r Resource) error { return EUnknownType } for _, rn := range r.DependsOn() { + // TODO handle refresh of dependant resources or block the deletion if deps, found := s.dependencies[rn.String()]; found { delete(deps, r.Name().String()) }