Changeset 149


Ignore:
Timestamp:
Oct 9, 2007, 2:59:00 AM (17 years ago)
Author:
ecprice
Message:

Tim, please run python on your code to verify that it parses properly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/sipb-xen-remctl-auto/sipb-xen-remctl-auto/files/usr/sbin/sipb-xen-lvm

    r146 r149  
    2020def ensureoff(machine):
    2121    # Make sure the machine is off, but we don't care about errors if it is already off.
    22     rv = call(["/usr/sbin/xm", "destroy", prefix + machine]
     22    rv = call(["/usr/sbin/xm", "destroy", prefix + machine])
    2323
    2424if subcommand == "lvremove":
     
    2828        print >>sys.stderr, "Error removing LV %s\n" %(lvname,)
    2929        sys.exit(1)
    30 else if subcommand == "lvresize":
     30elif subcommand == "lvresize":
    3131    size = sys.argv[4]
    3232    ensureoff(machine)
     
    3535        print >>sys.stderr, "Error resizing LV %s\n" %(lvname,)
    3636        sys.exit(1)
    37 else if subcommand == "lvrename":
     37elif subcommand == "lvrename":
    3838    newmachine = sys.argv[4]
    3939    newlvname = prefix + newmachine + "_" + disk
     
    4444        print >>sys.stderr, "Error renaming LV %s\n" %(lvname,)
    4545        sys.exit(1)
    46 else if subcommand == "lvcreate":
     46elif subcommand == "lvcreate":
    4747    size = sys.argv[4]
    4848    rv = call(["/sbin/lvcreate", "-L", size + "M", "-n", lvname, vg])
     
    5151        sys.exit(1)
    5252   
    53 else if subcommand == "lvcreate-all":
     53elif subcommand == "lvcreate-all":
    5454    from sipb_xen_database import *
    5555    import re
Note: See TracChangeset for help on using the changeset viewer.