1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2024-10-05 18:31:12 +01:00

output_processors/postgres: Fix incorrect parameter

When verifying the database schema the connection instead of a cursor
should be passed.
This commit is contained in:
Marc Bonnici 2018-12-07 10:30:48 +00:00 committed by setrofim
parent 916f7cbb17
commit f2d6f351cb

View File

@ -521,7 +521,7 @@ class PostgresqlResultProcessor(OutputProcessor):
self.conn.reset()
def verify_schema_versions(self):
local_schema_version, db_schema_version = get_schema_versions(self.cursor)
local_schema_version, db_schema_version = get_schema_versions(self.conn)
if local_schema_version != db_schema_version:
self.cursor.close()
self.cursor = None