Skip to content

Commit

Permalink
remove unused var & notion of 'addons'
Browse files Browse the repository at this point in the history
  • Loading branch information
wyattrees committed Jun 28, 2024
1 parent 485744c commit 39cf44a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions anvil-python/anvil/commands/haproxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@

APPLICATION = "haproxy"
CONFIG_KEY = "TerraformVarsHaproxyPlan"
ADDONS_CONFIG_KEY = "TerraformVarsHaproxyAddons"
HAPROXY_APP_TIMEOUT = 180 # 3 minutes, managing the application should be fast
HAPROXY_UNIT_TIMEOUT = (
1200 # 15 minutes, adding / removing units can take a long time
Expand All @@ -61,7 +60,7 @@ def validate_key_file(filepath: str) -> None:
class DeployHAProxyApplicationStep(DeployMachineApplicationStep):
"""Deploy HAProxy application using Terraform"""

_HAPROXY_ADDONS_QUESTIONS = {
_HAPROXY_QUESTIONS = {
"ssl_cert": questions.PromptQuestion(
"Path to SSL Certificate for HAProxy: ",
validation_function=validate_cert_file,
Expand Down Expand Up @@ -112,7 +111,7 @@ def has_prompts(self) -> bool:

def prompt(self, console: Console | None = None) -> None:
haproxy_addons_bank = questions.QuestionBank(
questions=self._HAPROXY_ADDONS_QUESTIONS,
questions=self._HAPROXY_QUESTIONS,
console=console,
)
with open(haproxy_addons_bank.ssl_cert.ask(), "r") as cert_file:
Expand Down

0 comments on commit 39cf44a

Please sign in to comment.