X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-database.git/blobdiff_plain/8fffbd0901b55badc06724322a34e898af443dfe..e78d74e7e46082af4dd99cf3eee2eb4d70b231c0:/client/etc/xen/sipb-database diff --git a/client/etc/xen/sipb-database b/client/etc/xen/sipb-database index 451762d..164cef0 100644 --- 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)