Revision 72224dd6

b/snf-cyclades-app/synnefo/plankton/backend.py
182 182
            meta = self._get_meta(image_url, version)
183 183
            meta["deleted"] = timestamp
184 184

  
185
        # XXX: Check that an object is a plankton image! PithosBackend will
186
        # return common metadata for an object, even if it has no metadata in
187
        # plankton domain. All images must have a name, so we check if a file
188
        # is an image by checking if they are having an image name.
185 189
        if PLANKTON_PREFIX + 'name' not in meta:
186
            logger.warning("Image without Plankton name! url %s meta %s",
187
                           image_url, meta)
188
            meta[PLANKTON_PREFIX + "name"] = ""
190
            raise ImageNotFound
189 191

  
190 192
        permissions = self._get_permissions(image_url)
191 193
        return image_to_dict(image_url, meta, permissions)

Also available in: Unified diff