projects
/
invirt/packages/invirt-remote.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
lp invert bug 349789
[invirt/packages/invirt-remote.git]
/
server
/
usr
/
sbin
/
invirt-remote-availability
1
#!/usr/bin/python
2
3
"""
4
Retrieve and print out the availability value for all Invirt hosts
5
"""
6
7
from invirt import remote
8
import yaml
9
import sys
10
11
def main(argv):
12
print yaml.dump(dict(remote.bcast('availability')), default_flow_style=False)
13
14
if __name__ == '__main__':
15
sys.exit(main(sys.argv))