xen-drbd

diff xen-drbd.py @ 25:50d097b46c8d

exec insted of print
author igor
date Tue Feb 19 18:32:26 2008 +0200 (2008-02-19)
parents ccf4137ea2a6
children e859a316802b
line diff
     1.1 --- a/xen-drbd.py	Tue Feb 19 18:27:29 2008 +0200
     1.2 +++ b/xen-drbd.py	Tue Feb 19 18:32:26 2008 +0200
     1.3 @@ -41,11 +41,11 @@
     1.4      return output
     1.5  
     1.6  def run(command,node=i_am):
     1.7 -   #return run_now(command,node)
     1.8 -   if node == i_am:
     1.9 -       print command
    1.10 -   else:
    1.11 -       print "ssh %s %s < /dev/null > /dev/stderr" % (node,mkarg(command))
    1.12 +    return run_now(command,node)
    1.13 +    #if node == i_am:
    1.14 +    #    print command
    1.15 +    #else:
    1.16 +    #    print "ssh %s %s < /dev/null > /dev/stderr" % (node,mkarg(command))
    1.17  
    1.18  
    1.19  def get_drbd_resources(domain):
    1.20 @@ -54,7 +54,7 @@
    1.21          if disk_description.find(":") == -1:
    1.22              disk.append(domain)
    1.23          else:
    1.24 -            disk.append((disk_description.split(':'))[0])
    1.25 +            disk.append((disk_description.split(':'))[1])
    1.26      return disk
    1.27      
    1.28