xen-drbd
diff xen-drbd.py @ 23:6e01df357a6a
automatic hostname in topology
author | igor |
---|---|
date | Tue Feb 19 12:53:45 2008 +0200 (2008-02-19) |
parents | 1c7442c793a1 |
children | ccf4137ea2a6 |
line diff
1.1 --- a/xen-drbd.py Fri Oct 05 16:59:35 2007 +0300 1.2 +++ b/xen-drbd.py Tue Feb 19 12:53:45 2008 +0200 1.3 @@ -1,6 +1,6 @@ 1.4 #!/usr/bin/python 1.5 1.6 -network='eb' 1.7 +network='od' 1.8 1.9 import sys,os,imp 1.10 from commands import mkarg 1.11 @@ -9,7 +9,7 @@ 1.12 sys.path.append('/etc/xen') 1.13 try: 1.14 exec 'from %s import *' % (network) 1.15 -except: 1.16 +except ImportError: 1.17 print "Can't find or interpret module %s with topology description" %(network) 1.18 sys.exit(1) 1.19