Resolve app name when verifying auction
All checks were successful
Lint Checks / Run linter (pull_request) Successful in 41s
Webapp Test / Run webapp test suite (pull_request) Successful in 5m46s
Smoke Test / Run basic test suite (pull_request) Successful in 5m41s
Deploy Test / Run deploy test suite (pull_request) Successful in 6m35s
K8s Deployment Control Test / Run deployment control suite on kind/k8s (pull_request) Successful in 8m27s
K8s Deploy Test / Run deploy test suite on kind/k8s (pull_request) Successful in 9m23s

This commit is contained in:
Prathamesh Musale 2024-10-09 16:39:49 +05:30
parent 4e4d498913
commit c24ff99e62

View File

@ -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