summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
7268d32)
svn path=/trunk/web/; revision=163
return disksize
def testName(user, name, machine=None):
return disksize
def testName(user, name, machine=None):
+ if Machine.select_by(name=name) == []:
+ return name
+ raise InvalidInput('name', name,
+ "Already taken")
def testHostname(user, hostname, machine):
for nic in machine.nics:
def testHostname(user, hostname, machine):
for nic in machine.nics:
transaction.commit()
except:
transaction.rollback()
transaction.commit()
except:
transaction.rollback()
remctl("web", "moveregister", oldname, name)
for disk in machine.disks:
# XXX all disks get the same size on change? Interface doesn't support more.
remctl("web", "moveregister", oldname, name)
for disk in machine.disks:
# XXX all disks get the same size on change? Interface doesn't support more.