svn path=/trunk/packages/invirt-web/; revision=1618
# end stolen code
def remctl(*args, **kwargs):
- return gen_remctl(config.remote.hostname, *args,
+ return gen_remctl(config.remote.hostname,
principal='daemon/'+config.web.hostname,
- **kwargs)
+ *args, **kwargs)
def lvcreate(machine, disk):
"""Create a single disk for a machine"""
"""
machine = validation.Validate(username, state, machine_id=fields.getfirst('machine_id')).machine
- token = control.vnctoken(machine)
+ token = controls.vnctoken(machine)
host = controls.listHost(machine)
if host:
port = 10003 + [h.hostname for h in config.hosts].index(host)