summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2006-06-15 17:45:57 +0000
committerNarayan Desai <desai@mcs.anl.gov>2006-06-15 17:45:57 +0000
commit7f82554ed1a1780798f3c958e147f01bd8a60493 (patch)
tree671cc49efe29e9511090b7db8a496172fe3f42b9 /tools
parent14724835e271422f196d97b9a5a65346fbb02e94 (diff)
downloadbcfg2-7f82554ed1a1780798f3c958e147f01bd8a60493.tar.gz
bcfg2-7f82554ed1a1780798f3c958e147f01bd8a60493.tar.bz2
bcfg2-7f82554ed1a1780798f3c958e147f01bd8a60493.zip
Produce an error message if setting up a dot pipe fails
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1884 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'tools')
-rwxr-xr-xtools/groups-to-dot.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/groups-to-dot.py b/tools/groups-to-dot.py
index 86c47a398..fa384c294 100755
--- a/tools/groups-to-dot.py
+++ b/tools/groups-to-dot.py
@@ -22,7 +22,11 @@ if __name__ == '__main__':
if not categories.has_key(group.get('category')):
categories[group.get('category')] = colors.pop()
- dotpipe.tochild.write("digraph groups {\n")
+ try:
+ dotpipe.tochild.write("digraph groups {\n")
+ except:
+ print "write to dot process failed. Is graphviz installed?"
+ raise SystemExit, 1
dotpipe.tochild.write('\trankdir="LR";\n')
if '-h' in sys.argv:
for client in clients.findall('Client'):