xen-drbd

diff od.py @ 30:fc4025aa8287

stripped .py suffixes in file names
author igor
date Sun Jun 29 15:47:02 2008 +0300 (2008-06-29)
parents 2ecda36e8d0d
children 5e499179b5ed
line diff
     1.1 --- a/od.py	Sun Feb 17 13:32:01 2008 +0200
     1.2 +++ b/od.py	Sun Jun 29 15:47:02 2008 +0300
     1.3 @@ -1,7 +1,11 @@
     1.4  
     1.5  node1='debian'
     1.6  node2='mirror'
     1.7 -i_am=node1
     1.8 +#i_am=node1
     1.9 +
    1.10 +from socket import gethostname; i_am=gethostname()
    1.11 +if i_am != node1 and i_am != node2:
    1.12 +    raise ValueError, "My hostname (%s) should be equal to node1 (%s) or node2 (%s)" % (i_am, node1, node2)
    1.13  
    1.14  ip_address = {
    1.15      node1: '10.0.5.220',