From: Tim Abbott Date: Mon, 8 Oct 2007 08:27:51 +0000 (-0400) Subject: throw error when disk creation fails X-Git-Tag: sipb-xen-database/8~3 X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-database.git/commitdiff_plain/f8911b7de139ad4099c17ae0c59c038407ea1145 throw error when disk creation fails svn path=/trunk/packages/sipb-xen-database/sipb-xen-database/; revision=142 --- 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)