repo.or.cz
/
autotest-zwu.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
KVM test: introduce VM exceptions
[autotest-zwu.git]
/
tko
/
machine_load
blob
b8c0472160ac5ad533b2fd1f5af8534b9d955a15
1
#!/usr/bin/python
2
import
db
3
4
db
=
db
.
db
()
5
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
)