BW2Package _create_obj fails sometimes

Issue #1 invalid
Chris Mutel
repo owner created an issue

package.py, line 118:

    @classmethod
    def _create_obj(cls, data):
        instance = data['class'](data['name'])

        if data['name'] not in instance._metadata:
            instance.register(**data['metadata'])
        else:
            instance.backup()
            instance.metadata = data['metadata']
            instance._metadata.flush()

        instance.write(data['data'])
        return instance

instance.metadata can't set metadata for some reason. Need to be investigated more.

Comments (2)

  1. Log in to comment