From f8911b7de139ad4099c17ae0c59c038407ea1145 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Mon, 8 Oct 2007 04:27:51 -0400 Subject: [PATCH] throw error when disk creation fails svn path=/trunk/packages/sipb-xen-database/sipb-xen-database/; revision=142 --- client/usr/sbin/sipb-xen-lvcreate | 1 + 1 file changed, 1 insertion(+) diff --git a/client/usr/sbin/sipb-xen-lvcreate b/client/usr/sbin/sipb-xen-lvcreate index 3d886ca..d1d7576 100755 --- a/client/usr/sbin/sipb-xen-lvcreate +++ b/client/usr/sbin/sipb-xen-lvcreate @@ -24,3 +24,4 @@ for d in Disk.select(): rv = call(["lvcreate", "-L", str(d.size) + "M", "-n", lvname, vg]) if rv != 0: print >>sys.stderr, "Error creating LV %s\n" %(lvname,) + sys.exit(1) -- 1.7.9.5