def create(cls, name, description, user, platform, disk_controller, network_device, video_device): image = Image.create(cls, name=name, description=description, user=user, size=0, progress=0, disk_dev=1, disk_controller=disk_controller) image.platform = platform image.access = image_access['private'] image.network_device = network_device image.video_device = video_device return image
def create(cls, name, description, user, disk_dev, disk_controller): image = Image.create(cls, name=name, description=description, user=user, disk_dev=disk_dev, disk_controller=disk_controller) return image
def create(cls, name, description, user, disk_controller, size=0): image = Image.create(cls, name=name, description=description, user=user, size=size, progress=0, disk_dev=1, disk_controller=disk_controller) return image