Esempio n. 1
0
 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
Esempio n. 2
0
    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
Esempio n. 3
0
    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
Esempio n. 4
0
 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
Esempio n. 5
0
    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
Esempio n. 6
0
    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