fix import dbpool error
@@ -53,7 +53,11 @@ def opa_push_project_data(db):
opa_push_data(PROJECT_DATA_DEST_URL, payload)
def opa_push_all(arg_db = None):
- db = dbpool.get() if arg_db is None else arg_db
+ if arg_db is None:
+ from pyinfraboxutils import dbpool
+ db = dbpool.get()
+ else:
+ db = arg_db
try:
opa_push_collaborator_data(db)
opa_push_project_data(db)
