def __init__(self, uri, target_device,
                 format, container, size=None, md5=None, os_id=None,
                 os_boot=False, image_name='', image_uuid='',
                 deployment_flags={}):
        # uri is something like
        # http://host:port/path/to/image.img or
        # file:///tmp/image.img
        self.uri = uri
        self.target_device = target_device
        # this must be one of 'iso9660', 'ext[234]', 'xfs'
        self.format = format
        if container not in self.SUPPORTED_CONTAINERS:
            raise errors.WrongImageDataError(
                'Error while image initialization: '
                'unsupported image container')
        self.container = container
        self.size = size
        self.md5 = md5
        self.img_tmp_file = None
        self.os_id = os_id
        self.os_boot = os_boot
        self.image_name = image_name
        self.image_uuid = image_uuid
        self.deployment_flags = deployment_flags
dataset/ETHPy150Open openstack/bareon/bareon/objects/image.py/Image.__init__/original