From c24ff99e6230b981554648d1e72e944f5792000c Mon Sep 17 00:00:00 2001 From: Prathamesh Musale Date: Wed, 9 Oct 2024 16:39:49 +0530 Subject: [PATCH] Resolve app name when verifying auction --- stack_orchestrator/deploy/webapp/util.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/stack_orchestrator/deploy/webapp/util.py b/stack_orchestrator/deploy/webapp/util.py index 92d5ddc8..7b8914c0 100644 --- a/stack_orchestrator/deploy/webapp/util.py +++ b/stack_orchestrator/deploy/webapp/util.py @@ -889,11 +889,12 @@ def confirm_auction(laconic: LaconicRegistryClient, record, deployer_lrn, paymen return False # Cross check app against application in the auction record - requested_app = record.attributes.application - auction_app = auction_records_by_id[0].attributes.application - if requested_app != auction_app: + requested_app = laconic.get_record(record.attributes.application, require=True) + auction_app = laconic.get_record(auction_records_by_id[0].attributes.application, require=True) + if requested_app.id != auction_app.id: logger.log( - f"{record.id}: requested application {requested_app} does not match application from auction record {auction_app}" + f"{record.id}: requested application {record.attributes.application} does not match application from " + f"auction record {auction_records_by_id[0].attributes.application}" ) return False