Code cleanups (#498)
This commit is contained in:
parent
69a9c95d73
commit
8265a85434
@ -141,10 +141,10 @@ def deploy(dry_run: bool = typer.Option(False, help="Whether to run a dry run.")
|
|||||||
|
|
||||||
# Upload the frontend and backend.
|
# Upload the frontend and backend.
|
||||||
with open(constants.FRONTEND_ZIP, "rb") as f:
|
with open(constants.FRONTEND_ZIP, "rb") as f:
|
||||||
response = httpx.put(frontend, data=f) # type: ignore
|
httpx.put(frontend, data=f) # type: ignore
|
||||||
|
|
||||||
with open(constants.BACKEND_ZIP, "rb") as f:
|
with open(constants.BACKEND_ZIP, "rb") as f:
|
||||||
response = httpx.put(backend, data=f) # type: ignore
|
httpx.put(backend, data=f) # type: ignore
|
||||||
|
|
||||||
|
|
||||||
@cli.command()
|
@cli.command()
|
||||||
|
@ -620,8 +620,8 @@ class State(Base, ABC):
|
|||||||
k: v.dict(include_computed=include_computed, **kwargs)
|
k: v.dict(include_computed=include_computed, **kwargs)
|
||||||
for k, v in self.substates.items()
|
for k, v in self.substates.items()
|
||||||
}
|
}
|
||||||
vars = {**base_vars, **computed_vars, **substate_vars}
|
variables = {**base_vars, **computed_vars, **substate_vars}
|
||||||
return {k: vars[k] for k in sorted(vars)}
|
return {k: variables[k] for k in sorted(variables)}
|
||||||
|
|
||||||
|
|
||||||
class DefaultState(State):
|
class DefaultState(State):
|
||||||
|
Loading…
Reference in New Issue
Block a user