Prefer deployers with names set
All checks were successful
Lint Checks / Run linter (pull_request) Successful in 35s
Deploy Test / Run deploy test suite (pull_request) Successful in 4m54s
Webapp Test / Run webapp test suite (pull_request) Successful in 4m53s
Smoke Test / Run basic test suite (pull_request) Successful in 3m44s
K8s Deploy Test / Run deploy test suite on kind/k8s (pull_request) Successful in 12m1s
K8s Deployment Control Test / Run deployment control suite on kind/k8s (pull_request) Successful in 6m12s

This commit is contained in:
Prathamesh Musale 2024-10-04 15:55:45 +05:30
parent 3349e8e0b4
commit 5a237b8f8d

View File

@ -133,11 +133,17 @@ def command( # noqa: C901
# Get deployer record for all the auction winners # Get deployer record for all the auction winners
for auction_winner in auction_winners: for auction_winner in auction_winners:
# TODO: Match auction winner address with provider address? # TODO: Match auction winner address with provider address?
deployer_records_by_owner = laconic.webapp_deployers({"--paymentAddress": auction_winner}) deployer_records_by_owner = laconic.webapp_deployers({"paymentAddress": auction_winner})
if len(deployer_records_by_owner) == 0: if len(deployer_records_by_owner) == 0:
print(f"WARNING: Unable to locate deployer for auction winner {auction_winner}") print(f"WARNING: Unable to locate deployer for auction winner {auction_winner}")
deployer_records.append(deployer_records_by_owner[0]) # Take first record with name set
target_deployer_record = deployer_records_by_owner[0]
for r in deployer_records_by_owner:
if len(r.names) > 0:
target_deployer_record = r
break
deployer_records.append(target_deployer_record)
else: else:
deployer_record = laconic.get_record(deployer) deployer_record = laconic.get_record(deployer)
if not deployer_record: if not deployer_record: