blob: 98b0fa9db396c8d28e20c8b2eaf2446ee05e9172 [file] [log] [blame]
#!/usr/bin/python
import db
db = db.db()
for line in open('machines', 'r').readlines():
(machine, group) = line.rstrip().split()
print 'X %s Y %s' % (machine, group)
set = { 'machine_group' : group }
where = { 'hostname' : machine }
db.update('machines', set, where)