Code cleanups (#498)

This commit is contained in:
Robert Neumann 2023-02-10 21:44:13 +01:00 committed by GitHub
parent 69a9c95d73
commit 8265a85434
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -141,10 +141,10 @@ def deploy(dry_run: bool = typer.Option(False, help="Whether to run a dry run.")
# Upload the frontend and backend.
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:
response = httpx.put(backend, data=f) # type: ignore
httpx.put(backend, data=f) # type: ignore
@cli.command()

View File

@ -620,8 +620,8 @@ class State(Base, ABC):
k: v.dict(include_computed=include_computed, **kwargs)
for k, v in self.substates.items()
}
vars = {**base_vars, **computed_vars, **substate_vars}
return {k: vars[k] for k in sorted(vars)}
variables = {**base_vars, **computed_vars, **substate_vars}
return {k: variables[k] for k in sorted(variables)}
class DefaultState(State):