diff options
author | Victor Morales <victor.morales@intel.com> | 2019-01-22 18:21:44 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-01-22 18:21:44 +0000 |
commit | 073d2f7806257f27b5b92088dc59ae5a98ae6c38 (patch) | |
tree | 46f72d4a83d4cf20bd5b217a953d69b12fbc2886 /src/k8splugin | |
parent | f2cc3c1a20b9d817f3e4efe3c66a6133d5fb3804 (diff) | |
parent | a9c4fe27e959c61e6c447d68757fd49da38256ac (diff) |
Merge "Delete content when a definition is deleted"
Diffstat (limited to 'src/k8splugin')
-rw-r--r-- | src/k8splugin/rb/definition.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/k8splugin/rb/definition.go b/src/k8splugin/rb/definition.go index eb7a12fc..91419bf1 100644 --- a/src/k8splugin/rb/definition.go +++ b/src/k8splugin/rb/definition.go @@ -129,6 +129,12 @@ func (v *DefinitionClient) Delete(id string) error { return pkgerrors.Wrap(err, "Delete Resource Bundle Definition") } + //Delete the content when the delete operation happens + err = db.DBconn.Delete(v.storeName, id, v.tagContent) + if err != nil { + return pkgerrors.Wrap(err, "Delete Resource Bundle Definition Content") + } + return nil } |