From 4803016893350e9c11216b18a8a70537009b7589 Mon Sep 17 00:00:00 2001 From: francescobrivio Date: Fri, 15 Jul 2022 17:09:17 +0200 Subject: [PATCH] fix conddb dump functionality for tags and gts --- CondCore/Utilities/scripts/conddb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CondCore/Utilities/scripts/conddb b/CondCore/Utilities/scripts/conddb index 862209888895a..a72ff3db7cfb8 100755 --- a/CondCore/Utilities/scripts/conddb +++ b/CondCore/Utilities/scripts/conddb @@ -2555,16 +2555,16 @@ def dump(args): filter(IOV.tag_name == name).\ distinct(): if args.format == 'xml': - xmlProcessor.payload2xml(session, payload) + xmlProcessor.payload2xml(session, payload, args.destfile) else: _dump_payload(session, payload, args.loadonly) - elif args.type == 'gt' and _exists(session, conddb.GlobalTag.name, name) != None: + elif args.type == 'gt' and _exists(session, GlobalTag.name, name) != None: for payload, in session.query(IOV.payload_hash).\ filter(GlobalTagMap.global_tag_name == name, IOV.tag_name == GlobalTagMap.tag_name).\ distinct(): if args.format == 'xml': - xmlProcessor.payload2xml(session, payload) + xmlProcessor.payload2xml(session, payload, args.destfile) else: _dump_payload(session, payload, args.loadonly)