Integrate SP auctions in webapp deployment flow #950

Merged
ashwin merged 25 commits from deep-stack/stack-orchestrator:pm-integrate-sp-auctions into main 2024-10-21 07:02:07 +00:00
Showing only changes of commit 04989eb29a - Show all commits

View File

@ -183,7 +183,9 @@ def command( # noqa: C901
if not response.ok:
response.raise_for_status()
config_ref = response.json()["id"]
target_deployer = deployer
if (not deployer) and len(deployer_record.names):
target_deployer = deployer_record.names[0]
deployment_request = {
"record": {
@ -191,7 +193,7 @@ def command( # noqa: C901
"application": app,
"version": "1.0.0",
"name": f"{app_record.attributes.name}@{app_record.attributes.version}",
"deployer": deployer,
"deployer": target_deployer,
"meta": {"when": str(datetime.utcnow())},
}
}