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')
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)