projects
/
invirt/packages/invirt-remote.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Actually suppress the error, without suppressing code errors.
[invirt/packages/invirt-remote.git]
/
files
/
usr
/
sbin
/
sipb-xen-lvm
diff --git
a/files/usr/sbin/sipb-xen-lvm
b/files/usr/sbin/sipb-xen-lvm
index
f69c2a6
..
183e54b
100755
(executable)
--- a/
files/usr/sbin/sipb-xen-lvm
+++ b/
files/usr/sbin/sipb-xen-lvm
@@
-2,7
+2,7
@@
import sys
import os.path
import sys
import os.path
-from subprocess import call
+from subprocess import call, PIPE
def check(b):
if not b:
def check(b):
if not b:
@@
-15,10
+15,7
@@
subcommand = sys.argv[1]
def ensureoff(machine):
# Make sure the machine is off, but we don't care about errors if it is already off.
def ensureoff(machine):
# Make sure the machine is off, but we don't care about errors if it is already off.
- try:
- rv = call(["/usr/sbin/xm", "destroy", prefix + machine])
- except:
- pass
+ rv = call(["/usr/sbin/xm", "destroy", prefix + machine], stderr=PIPE)
if subcommand == "lvcreate-all":
from sipb_xen_database import *
if subcommand == "lvcreate-all":
from sipb_xen_database import *