Ignore:
Timestamp:
Aug 6, 2008, 1:07:22 AM (16 years ago)
Author:
price
Message:

add and respect 'adminable' column to machines

This is for selectively, temporarily, manually enabling admin mode
for a VM. Where it's not set, admin mode now bypasses quotas and does
nothing else.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/sipb-xen-database/python/database/models.py

    r630 r874  
    2121           'CDROM',
    2222           'Autoinstall',
     23           'or_',
    2324           ]
    2425
     
    3738       Column('type_id', String, ForeignKey('types.type_id'), nullable=False),
    3839       Column('autorestart', Boolean, nullable=False, default=False),
    39        Column('cpus', Integer, nullable=False, default=1))
     40       Column('cpus', Integer, nullable=False, default=1),
     41       Column('adminable', Boolean, nullable=False, default=False))
    4042
    4143nic_table = Table('nics', meta,
Note: See TracChangeset for help on using the changeset viewer.