예제 #1
0
파일: nmap.py 프로젝트: zoe-mora-imdc/Ossim
def apimethod_nmap_purge_database():
    """Purge the redis database"""
    db = None
    try:
        db = NMAPScansDB()
        db.flush()
    finally:
        del db
예제 #2
0
def apimethod_nmap_purge_database():
    """Purge the redis database"""
    try:
        db = NMAPScansDB()
        db.flush()
    except Exception:
        raise
    finally:
        del db