throw error when disk creation fails
authorTim Abbott <tabbott@mit.edu>
Mon, 8 Oct 2007 08:27:51 +0000 (04:27 -0400)
committerTim Abbott <tabbott@mit.edu>
Mon, 8 Oct 2007 08:27:51 +0000 (04:27 -0400)
svn path=/trunk/packages/sipb-xen-database/sipb-xen-database/; revision=142

client/usr/sbin/sipb-xen-lvcreate

index 3d886ca..d1d7576 100755 (executable)
@@ -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)