tasks.py: format
This commit is contained in:
parent
661a424343
commit
723eaa5e36
1 changed files with 1 additions and 2 deletions
3
tasks.py
3
tasks.py
|
@ -13,9 +13,9 @@ from invoke import task
|
||||||
ROOT = Path(__file__).parent.resolve()
|
ROOT = Path(__file__).parent.resolve()
|
||||||
os.chdir(ROOT)
|
os.chdir(ROOT)
|
||||||
|
|
||||||
|
|
||||||
# Deploy to all hosts in parallel
|
# Deploy to all hosts in parallel
|
||||||
def deploy_nixos(hosts: List[DeployHost]) -> None:
|
def deploy_nixos(hosts: List[DeployHost]) -> None:
|
||||||
|
|
||||||
g = DeployGroup(hosts)
|
g = DeployGroup(hosts)
|
||||||
|
|
||||||
res = subprocess.run(
|
res = subprocess.run(
|
||||||
|
@ -121,7 +121,6 @@ def update_hound_repos(c):
|
||||||
|
|
||||||
next_url = "https://api.github.com/orgs/{}/repos".format(org)
|
next_url = "https://api.github.com/orgs/{}/repos".format(org)
|
||||||
while next_url is not None:
|
while next_url is not None:
|
||||||
|
|
||||||
if github_token is not None:
|
if github_token is not None:
|
||||||
headers = {"Authorization": f"token {github_token}"}
|
headers = {"Authorization": f"token {github_token}"}
|
||||||
repo_resp = requests.get(next_url, headers=headers)
|
repo_resp = requests.get(next_url, headers=headers)
|
||||||
|
|
Loading…
Add table
Reference in a new issue