import sys
import time
import re
+import cache_acls
# ... and stolen from xend/uuid.py
def randomUUID():
elif err:
raise CodeError('"%s" on "control %s create %s'
% (err, machine.name, cdtype))
- else:
- raise CodeError('"%s" on "control %s create %s'
- % (err, machine.name, cdtype))
def registerMachine(machine):
"""Register a machine to be controlled by the web interface"""
nic.hostname = name
ctx.current.save(nic)
ctx.current.save(disk)
+ cache_acls.refreshMachine(machine)
transaction.commit()
except:
transaction.rollback()