Skip to content

Commit

Permalink
Merge pull request #12266 from ggovi/conddbV2-fix-conddb-pytools-1
Browse files Browse the repository at this point in the history
Fix for conddb python tools
  • Loading branch information
cmsbuild committed Nov 12, 2015
2 parents 76eb5d0 + 299abf4 commit 95dc5a0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CondCore/Utilities/python/conddblib.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,9 @@ def is_valid(self):
'''Tests whether the current DB looks like a valid CMS Conditions one.
'''
engine_connection = self.engine.connect()
ret = all([self.engine.dialect.has_table(engine_connection, table.__tablename__) for table in [Tag, IOV, Payload, GlobalTag, GlobalTagMap]])
#ret = all([self.engine.dialect.has_table(engine_connection, table.__tablename__) for table in [Tag, IOV, Payload, GlobalTag, GlobalTagMap]])
# temporarely avoid the check on the GT tables - there are releases in use where C++ does not create these tables.
ret = all([self.engine.dialect.has_table(engine_connection, table.__tablename__) for table in [Tag, IOV, Payload]])
engine_connection.close()
return ret

Expand Down

0 comments on commit 95dc5a0

Please sign in to comment.