Commit 71b06011 authored by Cristiano Urban's avatar Cristiano Urban
Browse files

Modified 'insertStorage()' method.

parent c6afb0a9
Loading
Loading
Loading
Loading
+21 −21
Original line number Diff line number Diff line
@@ -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: