Changeset 165
- Timestamp:
- Oct 9, 2007, 10:59:40 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/web/templates/main.py
r164 r165 615 615 name = testName(user, fields.getfirst('name'), machine) 616 616 oldname = machine.name 617 command="modify" 617 618 olddisk = {} 618 619 … … 628 629 if disksize is not None: 629 630 disksize = validDisk(user, disksize, machine) 631 else: 632 disksize = machine.disks[0].size 630 633 for disk in machine.disks: 634 olddisk[disk.guest_device_name] = disk.size 631 635 disk.size = disksize 632 olddisk[disk.guest_device_name] = disk.size633 636 ctx.current.save(disk) 634 637 … … 656 659 remctl("web", "lvrename", oldname, disk.guest_device_name, name) 657 660 d = dict(user=user, 658 command= "modify",661 command=command, 659 662 machine=machine) 660 663 return Template(file="command.tmpl", searchList=[d, global_dict])
Note: See TracChangeset
for help on using the changeset viewer.