Commit 44c046e1 authored by Christos Stavrakakis's avatar Christos Stavrakakis
Browse files

plankton: Correct image unregister

Correct usage of 'update_object_meta' function to remove all metadata
from plankton domain. Use an empty dictionary with replace=True.

Refs #3522
parent 5397f8eb
......@@ -224,10 +224,8 @@ class ImageBackend(object):
self._get_image(image_url) # Assert that it is an image
# Unregister the image by removing all metadata from domain
# 'PLANKTON_DOMAIN'
meta = self._get_meta(image_url)
for k in meta.keys():
meta[k] = ""
self._update_meta(image_url, meta, False)
meta = {}
self._update_meta(image_url, meta, True)
@handle_backend_exceptions
def add_user(self, image_uuid, add_user):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment