# HG changeset patch # User igor # Date 1203438746 -7200 # Node ID 50d097b46c8da9db2bd87bd033cce092b626bb14 # Parent ccf4137ea2a6869344ae02d71f7c2e25bfe6f843 exec insted of print diff -r ccf4137ea2a6 -r 50d097b46c8d xen-drbd.py --- a/xen-drbd.py Tue Feb 19 18:27:29 2008 +0200 +++ b/xen-drbd.py Tue Feb 19 18:32:26 2008 +0200 @@ -41,11 +41,11 @@ return output def run(command,node=i_am): - #return run_now(command,node) - if node == i_am: - print command - else: - print "ssh %s %s < /dev/null > /dev/stderr" % (node,mkarg(command)) + return run_now(command,node) + #if node == i_am: + # print command + #else: + # print "ssh %s %s < /dev/null > /dev/stderr" % (node,mkarg(command)) def get_drbd_resources(domain): @@ -54,7 +54,7 @@ if disk_description.find(":") == -1: disk.append(domain) else: - disk.append((disk_description.split(':'))[0]) + disk.append((disk_description.split(':'))[1]) return disk