ctx.current.save(nic)
for disk in machine.disks:
ctx.current.delete(disk)
+ for access in machine.users:
+ ctx.current.delete(access)
ctx.current.delete(machine)
transaction.commit()
except:
import time
from StringIO import StringIO
-
def revertStandardError():
"""Move stderr to stdout, and return the contents of the old stderr."""
errio = sys.stderr
if not operation:
operation = 'list'
- #main(operation, u, fields)
- import profile
- profile.run('main(operation, u, fields)', 'log-'+operation)
+ main(operation, u, fields)
+ #import profile
+ #profile.run('main(operation, u, fields)', 'log-'+operation)