Skip to content
Snippets Groups Projects
Commit 71b06011 authored by Cristiano Urban's avatar Cristiano Urban
Browse files

Modified 'insertStorage()' method.

parent c6afb0a9
No related branches found
No related tags found
No related merge requests found
......@@ -1213,11 +1213,11 @@ class DbConnector(object):
else:
try:
cursor.execute("""
SELECT storage_id
SELECT DISTINCT storage_id
FROM storage
JOIN location ON storage_id = storage_dest_id
WHERE storage_type = 'local'
AND base_path = '/home'
AND hostname = 'localhost';
AND location_type = 'async';
""")
storageDestId = cursor.fetchall()[0]["storage_id"]
except Exception:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment