This commit is contained in:
Dannon Baker
2013-09-26 09:49:50 -04:00
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -378,7 +378,7 @@ class GalaxyConfig( object ):
return True
else:
try:
return { "psycopg2": lambda: self.config.get( "app:main", "database_connection" ).startswith( "postgres://" ),
return { "psycopg2": lambda: self.config.get( "app:main", "database_connection" ).startswith( "postgres" ),
"MySQL_python": lambda: self.config.get( "app:main", "database_connection" ).startswith( "mysql://" ),
"DRMAA_python": lambda: "sge" in self.config.get( "app:main", "start_job_runners" ).split(","),
"drmaa": lambda: "drmaa" in self.config.get( "app:main", "start_job_runners" ).split(","),
+2 -2
View File
@@ -76,7 +76,7 @@ def quotacheck( sa_session, users, engine ):
sa_session.refresh( user )
current = user.get_disk_usage()
print user.username, '<' + user.email + '>:',
if engine != 'postgres':
if engine not in ( 'postgres', 'postgresql' ):
new = user.calculate_disk_usage()
sa_session.refresh( user )
# usage changed while calculating, do it again
@@ -94,7 +94,7 @@ def quotacheck( sa_session, users, engine ):
print '+%s' % ( nice_size( new - current ) )
else:
print '-%s' % ( nice_size( current - new ) )
if not options.dryrun and engine != 'postgres':
if not options.dryrun and engine not in ( 'postgres', 'postgresql' ):
user.set_disk_usage( new )
sa_session.add( user )
sa_session.flush()