KVM test: introduce VM exceptions
[autotest-zwu.git] / tko / machine_load
blobb8c0472160ac5ad533b2fd1f5af8534b9d955a15
1 #!/usr/bin/python
2 import db
4 db = db.db()
6 for line in open('machines', 'r').readlines():
7 (machine, group) = line.rstrip().split()
8 print 'X %s Y %s' % (machine, group)
9 set = { 'machine_group' : group }
10 where = { 'hostname' : machine }
11 db.update('machines', set, where)