Ignore:
Timestamp:
Nov 11, 2008, 4:32:17 AM (16 years ago)
Author:
broder
Message:

Actually generalize the invirt.remctl module

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/invirt-web/code/controls.py

    r1613 r1614  
    1010from invirt.config import structs as config
    1111from invirt.database import Machine, Disk, Type, NIC, CDROM, session, meta
    12 from invirt.remctl import remctl
     12from invirt.remctl import remctl as gen_remctl
    1313
    1414# ... and stolen from xend/uuid.py
     
    2323                     "%02x" * 6]) % tuple(u)
    2424# end stolen code
     25
     26def remctl(*args, **kwargs):
     27    return gen_remctl(config.remote.hostname, *args,
     28                      principal='daemon/'+config.web.hostname,
     29                      **kwargs)
    2530
    2631def lvcreate(machine, disk):
Note: See TracChangeset for help on using the changeset viewer.