Changeset 165


Ignore:
Timestamp:
Oct 9, 2007, 10:59:40 PM (17 years ago)
Author:
ecprice
Message:

Make not modifying the disks work.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/web/templates/main.py

    r164 r165  
    615615        name = testName(user, fields.getfirst('name'), machine)
    616616        oldname = machine.name
     617        command="modify"
    617618        olddisk = {}
    618619
     
    628629        if disksize is not None:
    629630            disksize = validDisk(user, disksize, machine)
     631        else:
     632            disksize = machine.disks[0].size
    630633        for disk in machine.disks:
     634            olddisk[disk.guest_device_name] = disk.size
    631635            disk.size = disksize
    632             olddisk[disk.guest_device_name] = disk.size
    633636            ctx.current.save(disk)
    634637       
     
    656659            remctl("web", "lvrename", oldname, disk.guest_device_name, name)
    657660    d = dict(user=user,
    658              command="modify",
     661             command=command,
    659662             machine=machine)
    660663    return Template(file="command.tmpl", searchList=[d, global_dict])   
Note: See TracChangeset for help on using the changeset viewer.