Skip to content

Commit

Permalink
fixing headers
Browse files Browse the repository at this point in the history
  • Loading branch information
clemenko committed Apr 17, 2024
1 parent f05a3fd commit a6831bb
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions dzver/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,22 +43,22 @@ def curl_all_the_things():
rke_data = json.loads(requests.get("https://update.rke2.io/v1-release/channels").text)
rke_out = json.dumps(rke_data["data"][0]["latest"]).replace('"', '')

cert_data = json.loads(requests.get("https://api.github.com/repos/cert-manager/cert-manager/releases/latest").text)
cert_data = json.loads(requests.get("https://api.github.com/repos/cert-manager/cert-manager/releases/latest", headers=headers).text)
cert_out = json.dumps(cert_data["tag_name"]).replace('"', '')

rancher_data = json.loads(requests.get("https://api.github.com/repos/rancher/rancher/releases/latest").text)
rancher_data = json.loads(requests.get("https://api.github.com/repos/rancher/rancher/releases/latest", headers=headers).text)
rancher_out = json.dumps(rancher_data["tag_name"]).replace('"', '')

longhorn_data = json.loads(requests.get("https://api.github.com/repos/longhorn/longhorn/releases/latest").text)
longhorn_data = json.loads(requests.get("https://api.github.com/repos/longhorn/longhorn/releases/latest", headers=headers).text)
longhorn_out = json.dumps(longhorn_data["tag_name"]).replace('"', '')

neuvector_data = json.loads(requests.get("https://api.github.com/repos/neuvector/neuvector/releases/latest").text)
neuvector_data = json.loads(requests.get("https://api.github.com/repos/neuvector/neuvector/releases/latest", headers=headers).text)
neuvector_out = json.dumps(neuvector_data["tag_name"]).replace('"', '')

harvester_data = json.loads(requests.get("https://api.github.com/repos/harvester/harvester/releases/latest").text)
harvester_data = json.loads(requests.get("https://api.github.com/repos/harvester/harvester/releases/latest, headers=headers").text)
harvester_out = json.dumps(harvester_data["tag_name"]).replace('"', '')

hauler_data = json.loads(requests.get("https://api.github.com/repos/rancherfederal/hauler/releases/latest").text)
hauler_data = json.loads(requests.get("https://api.github.com/repos/rancherfederal/hauler/releases/latest", headers=headers).text)
hauler_out = json.dumps(hauler_data["tag_name"]).replace('"', '')

k3s_data = json.loads(requests.get("https://update.k3s.io/v1-release/channels").text)
Expand Down

0 comments on commit a6831bb

Please sign in to comment.