nixos modules for convenient deployment of cloud resources
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix(hetzner): authHeader is a variable so use it properly

ptr.pet 3a9872f4 836663d9

verified
+2 -2
+2 -2
firewall/provider/hetzner/app.nu
··· 6 6 return $"https://api.hetzner.cloud/v1($path)" 7 7 } 8 8 def post [path: string] { 9 - mut resp = $in | http post -e --full -H authHeader --content-type application/json (makeApiUrl path) 9 + mut resp = $in | http post -e --full -H $authHeader --content-type application/json (makeApiUrl path) 10 10 $resp.body = $resp.body | from json 11 11 $resp 12 12 } 13 13 def get [path: string] { 14 - mut resp = http get -e --full -H authHeader (makeApiUrl path) 14 + mut resp = http get -e --full -H $authHeader (makeApiUrl path) 15 15 $resp.body = $resp.body | from json 16 16 $resp 17 17 }