Skip to content

Commit 4a2fe35

Browse files
committed
rename state to STATE
1 parent 7037300 commit 4a2fe35

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

ctf/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616

1717
ENV = {}
18-
state = {"verbose": False}
18+
STATE = {"verbose": False}
1919
for k, v in os.environ.items():
2020
ENV[k] = v
2121

ctf/__main__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from typer import Typer
77
from typing_extensions import Annotated
88

9-
from ctf import ENV, LOG, state
9+
from ctf import ENV, LOG, STATE
1010
from ctf.check import app as check_app
1111
from ctf.deploy import app as deploy_app
1212
from ctf.destroy import app as destroy_app
@@ -52,7 +52,7 @@ def global_options(
5252
if verbose:
5353
LOG.setLevel(logging.DEBUG)
5454
LOG.handlers[0].setLevel(logging.DEBUG)
55-
state["verbose"] = True
55+
STATE["verbose"] = True
5656

5757
if location:
5858
ENV["CTF_ROOT_DIR"] = location

ctf/deploy.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import typer
88
from typing_extensions import Annotated
99

10-
from ctf import ENV, state
10+
from ctf import ENV, STATE
1111
from ctf.destroy import destroy
1212
from ctf.generate import generate
1313
from ctf.logger import LOG
@@ -224,7 +224,7 @@ def deploy(
224224

225225
def run_ansible_playbook(remote: str, production: bool, track: str, path: str) -> None:
226226
extra_args = []
227-
if state["verbose"]:
227+
if STATE["verbose"]:
228228
extra_args.append("-vvv")
229229
if remote:
230230
extra_args += ["-e", f"ansible_incus_remote={remote}"]

0 commit comments

Comments
 (0)