projects
/
invirt/packages/invirt-database.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd4902b
)
exit is defined elsewhere, so we use sys.exit.
author
Eric Price
<ecprice@mit.edu>
Sun, 7 Oct 2007 20:24:22 +0000
(16:24 -0400)
committer
Eric Price
<ecprice@mit.edu>
Sun, 7 Oct 2007 20:24:22 +0000
(16:24 -0400)
svn path=/trunk/packages/sipb-xen-database/sipb-xen-database/; revision=117
client/etc/xen/sipb-database
patch
|
blob
|
history
diff --git
a/client/etc/xen/sipb-database
b/client/etc/xen/sipb-database
index
451762d
..
164cef0
100644
(file)
--- a/
client/etc/xen/sipb-database
+++ b/
client/etc/xen/sipb-database
@@
-2,7
+2,6
@@
import sipb_xen_database.models as models
from sipb_xen_database import connect
import re
-import sys
connect('postgres://sipb-xen@sipb-xen-dev.mit.edu/sipb_xen')
@@
-11,7
+10,8
@@
connect('postgres://sipb-xen@sipb-xen-dev.mit.edu/sipb_xen')
def check(b):
if not b:
- exit(1)
+ import sys
+ sys.exit(1)
machine = models.Machine.get_by(name=machine_name)
check(machine is not None)